removed armour slow down

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@76 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
arghvark
2005-10-27 14:52:37 +00:00
parent 0ea3859052
commit 123b2f08c0
3 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ enum // md3 animations
struct dynent // players & monsters
{
vec o, vel; // origin, velocity
float yaw, pitch, roll; // used as vec in one place
float yaw, pitch, roll; // used as vec in one place
float oldpitch;
float maxspeed; // cubes per second, 24 for player
bool outsidemap; // from his eyes
+3 -2
View File
@@ -7,7 +7,7 @@ vector<entity> ents;
char *entmdlnames[] =
{
//FIXME : fix the "pickups" infront
"pickups/pistolclips", "pickups/ammobox", "ammobox" /*grenade*/, "pickups/health", "pickups/kevlar", "ammobox" /*dual pistols*/,
"pickups/pistolclips", "pickups/ammobox", "ammobox" /*grenade*/, "pickups/health", "pickups/kevlar", "pickups/duals" /*dual pistols*/,
};
int triggertime = 0;
@@ -240,7 +240,8 @@ void radd(dynent *d)
if(gamemode==m_arena)
d->armour = 100;
}
d->gunselect = d->primary; //draw main weapon
};
void item(int num)
+1 -8
View File
@@ -190,10 +190,6 @@ void selfdamage(dynent * d, int dm)
void moveplayer(dynent *pl, int moveres, bool local, int curtime)
{
if (pl->armour > 0)
pl->maxspeed = 14;
else pl->maxspeed = 16;
const bool water = hdr.waterlevel>pl->o.z-0.5f;
const bool floating = (editmode && local) || pl->state==CS_EDITING;
@@ -251,10 +247,7 @@ void moveplayer(dynent *pl, int moveres, bool local, int curtime)
if(pl->jumpnext)
{
pl->jumpnext = false;
if (pl->armour>0)
pl->vel.z = 1.9f;
else
pl->vel.z = 1.7f; // physics impulse upwards
pl->vel.z = 1.7f; // physics impulse upwards
if(water) { pl->vel.x /= 8; pl->vel.y /= 8; }; // dampen velocity change even harder, gives correct water feel
if(local) playsoundc(S_JUMP);
else if(pl->monsterstate) playsound(S_JUMP, &pl->o);