seta g_rpg 0 "RPG: RolePlay / Free Roam gametype"\r
set g_rpg_canleave 1 "when enabled, anyone can leave a predator's stomach in RPG (like leaving a team mate in team games)"\r
set g_rpg_botattack 1 "bot behavior in RPG. 0 causes bots to never attack, 1 allows bots to swallow you harmlessly, 2 allows bots to attack normally"\r
+set g_rpg_turretattack 0 "if disabled, turrets don't attack anyone in RPG games. Otherwise, they attack everyone."\r
\r
// server game balance settings\r
// powerup balance settings\r
return -21;\r
*/\r
\r
+ // Don't attack in RPG if this is not allowed\r
+ if(cvar("g_rpg") && !cvar("g_rpg_turretattack"))\r
+ return -22;\r
+\r
#ifdef TURRET_DEBUG_TARGETSELECT\r
dprint("Target:",e_target.netname," is a valid target for ",e_turret.netname,"\n");\r
#endif\r