Any way to disable specific death streaks from bots? (Bot Warfare mod)
-
I've been trying to find a way to disable Final Stand specifically for the bots, attempts to disable it with the in-game custom class restrictions didn't work as they just ignored the restrictions anyway, and disabling "op loadouts" option in the files also disables their use of the SMAW, which is a running gag amongst my friends (seeing people eat a rocket by a jumping bot will never get old).
Final stand is awful since it grants i-frames as they're going down, even letting them tank a MOAB and they love having it on all their classes, so I'd like to just specifically disable that.
-
Okami Amaterasu With this script, you don't restrict what you want, but it won't allow bots to get any deathstreaks.
#include maps\mp\gametypes\_class; #include common_scripts\utility; #include maps\mp\_utility; #include maps\mp\gametypes\_hud_util; init() { level thread connect(); } connect() { for(;;){ level waittill("connected", player); if(IsDefined( player.pers[ "isBot" ] ) && player.pers[ "isBot" ] ) player thread onPlayerKilled(); } } onPlayerKilled() { self endon("disconnect"); level endon("game_ended"); for(;;) { self waittill("killed_player"); self.pers["cur_death_streak"] = 0; //Stop deathstreak } }
-
Kalitos Oh, thanks! Though where would I put this?
-
Okami Amaterasu https://plutonium.pw/docs/modding/loading-mods/#iw5
Follow the link, copy the above code into a file and save it "restrict.gsc" and then copy where the link tells you. You must do it on your server