hardcoded burst fire settings (menus still TODO)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6862 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2012-08-24 16:01:10 +00:00
parent bebae41a0c
commit ef76f7f88d
5 changed files with 23 additions and 0 deletions
+12
View File
@@ -881,6 +881,18 @@ void writekillmsgcfg()
f->printf("\n");
}
void burstshots(int gun, int shots = -1)
{
if(gun >= 0 && gun < NUMGUNS && guns[gun].isauto)
{
if(shots >= 0) burstshotssettings[gun] = shots;
else intret(burstshotssettings[gun]);
}
else conoutf(_("invalid gun specified"));
}
COMMAND(burstshots, ARG_2INT);
// damage arriving from the network, monsters, yourself, all ends up here.
void dodamage(int damage, playerent *pl, playerent *actor, int gun, bool gib, bool local)