akimboautoswitch

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6310 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-04-23 20:20:38 +00:00
parent 4eeb474467
commit 75e2f675ab
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -5,6 +5,7 @@
#include "hudgun.h"
VARP(autoreload, 0, 1, 1);
VARP(akimboautoswitch, 0, 1, 1);
VARP(akimboendaction, 0, 0, 2); // 0: stay with pistol, 1: back to primary, 2: grenade - all fallback to previous one w/o ammo for target
struct sgray {
int ds; // damage flag: outer, medium, center: SGSEGDMG_*
@@ -1445,7 +1446,8 @@ void akimbo::onammopicked()
akimbomillis = lastmillis + 30000;
if(owner==player1)
{
if(owner->weaponsel->type!=GUN_SNIPER && owner->weaponsel->type!=GUN_GRENADE) owner->weaponswitch(this);
// if(owner->weaponsel->type!=GUN_SNIPER && owner->weaponsel->type!=GUN_GRENADE) owner->weaponswitch(this);
if(akimboautoswitch) owner->weaponswitch(this); // Give the client full control over akimbo auto-switching // Bukz 2011apr23
addmsg(SV_AKIMBO, "ri", lastmillis);
}
}