diff options
Diffstat (limited to 'gsctool')
-rw-r--r-- | gsctool/config.ini | 3 | ||||
-rw-r--r-- | gsctool/spawn_raygun/main.gsc | 31 |
2 files changed, 34 insertions, 0 deletions
diff --git a/gsctool/config.ini b/gsctool/config.ini new file mode 100644 index 0000000..b29db9c --- /dev/null +++ b/gsctool/config.ini @@ -0,0 +1,3 @@ +mod.dir=spawn_raygun +mod.entry=main.gsc + diff --git a/gsctool/spawn_raygun/main.gsc b/gsctool/spawn_raygun/main.gsc new file mode 100644 index 0000000..b1fef79 --- /dev/null +++ b/gsctool/spawn_raygun/main.gsc @@ -0,0 +1,31 @@ +#include maps\_utility;
+#include common_scripts\utility;
+#include maps\_hud_util;
+
+main()
+{
+ level thread onPlayerConnect();
+}
+
+onPlayerConnect()
+{
+ for(;;)
+ {
+ level waittill("connected", player);
+ player thread onPlayerSpawned();
+ }
+}
+
+onPlayerSpawned()
+{
+ self endon("disconnect");
+ for(;;)
+ {
+ self waittill("spawned_player");
+ self iprintln("Spawned raygun!");
+ self GiveWeapon("ray_gun_zm");
+ self SetWeaponAmmoStock("ray_gun_zm", 1000);
+ self SwitchToWeapon("ray_gun_zm");
+
+ }
+}
|