diff options
Diffstat (limited to 'gsctool/spawn_raygun/main.gsc')
-rw-r--r-- | gsctool/spawn_raygun/main.gsc | 31 |
1 files changed, 31 insertions, 0 deletions
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");
+
+ }
+}
|