new nade values, and header inclusion in makefile

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4932 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-05-19 16:36:29 +00:00
parent db8e317450
commit ca226dcf83
2 changed files with 7 additions and 5 deletions
+5 -4
View File
@@ -8,7 +8,6 @@
#include "server.h"
#include "servercontroller.h"
#include "serverfiles.h"
#include "serverchecks.h" // this is temporary, and will be let here for now for compatibility issues
// config
servercontroller *svcctrl = NULL;
@@ -54,6 +53,8 @@ servermapbuffer mapbuffer;
char *global_name;
int clientnumber = 0;
#include "serverchecks.h" // this is temporary, and will be let here for now for compatibility issues
bool valid_client(int cn)
{
return clients.inrange(cn) && clients[cn]->type != ST_EMPTY;
@@ -1221,8 +1222,8 @@ int spawntime(int type)
switch(type)
{
case I_CLIPS:
case I_AMMO:
case I_GRENADE: sec = np*2; break;
case I_AMMO: sec = np*2; break;
case I_GRENADE: sec = 12; break;
case I_HEALTH: sec = np*5; break;
case I_HELMET:
case I_ARMOUR: sec = 20; break;
@@ -1303,7 +1304,7 @@ void serverdamage(client *target, client *actor, int damage, int gun, bool gib,
target->state.deaths++;
if(target!=actor)
{
if(!isteam(target->team, actor->team)) actor->state.frags += gib ? 2 : 1;
if(!isteam(target->team, actor->team)) actor->state.frags += gib && gun != GUN_GRENADE ? 2 : 1;
else
{
actor->state.frags--;