Any Weapon While Downed Mod
-
Just a little script that allows you to use any weapon while downed, just replace the mark 2 name with any weapon you want as long as it's on the map. it should override any pistol
#include maps\_utility; #include common_scripts\utility; #include zm_laststand; init() { PrecacheItem("raygun_mark2_upgraded_zm"); level.default_laststandpistol = "raygun_mark2_upgraded_zm"; level.default_solo_laststandpistol = "raygun_mark2_upgraded_zm"; level thread on_player_connect(); } on_player_connect() { level endon("end_game"); for(;;) { level waittill("connecting", player); player thread monitor_downed(); } } monitor_downed() { self endon("disconnect"); for(;;) { self waittill("player_downed"); if (isDefined(level.default_laststandpistol) && self HasWeapon(level.default_laststandpistol)) { self TakeWeapon(level.default_laststandpistol); } if (!self HasWeapon("raygun_mark2_upgraded_zm")) { self GiveWeapon("raygun_mark2_upgraded_zm"); self SwitchToWeapon("raygun_mark2_upgraded_zm"); } self waittill_any("player_revived", "player_died"); if (self HasWeapon("raygun_mark2_upgraded_zm")) { self TakeWeapon("raygun_mark2_upgraded_zm"); } } }
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login