Mantis 0000475:

o Differentiated detonation times for handgreandes and grenades from the grenade launcher.
o Added a new balance var: kHandGrenDetonateTime

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@302 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
tankefugl 2005-07-26 01:32:32 +00:00
parent e620cd1c32
commit 3c4b144cd9
2 changed files with 3 additions and 2 deletions

View File

@ -129,13 +129,14 @@
#define kGorgeCost 10 #define kGorgeCost 10
#define kGorgeGestateTime 10 #define kGorgeGestateTime 10
#define kGorgeHealth 150 #define kGorgeHealth 150
#define kGrenDetonateTime 0.75 #define kGrenDetonateTime 2
#define kGrenadeDamage 125 #define kGrenadeDamage 125
#define kGrenadeForce 800 #define kGrenadeForce 800
#define kGrenadeLauncherCost 15 #define kGrenadeLauncherCost 15
#define kGrenadeRadius 350 #define kGrenadeRadius 350
#define kGrenadesResearchCost 10 #define kGrenadesResearchCost 10
#define kGrenadesResearchTime 45 #define kGrenadesResearchTime 45
#define kHandGrenDetonateTime 0.75
#define kHGDamage 20 #define kHGDamage 20
#define kHGMaxAmmo 30 #define kHGMaxAmmo 30
#define kHGMaxClip 10 #define kHGMaxClip 10

View File

@ -378,7 +378,7 @@ void AvHGrenade::CreateProjectile()
} }
// How to handle this? Only generate entity on server, but we should do SOMETHING on the client, no? // How to handle this? Only generate entity on server, but we should do SOMETHING on the client, no?
CGrenade* theGrenade = AvHSUShootServerGrenade(this->m_pPlayer->pev, theStartPosition, theVelocity, BALANCE_VAR(kGrenDetonateTime), true); CGrenade* theGrenade = AvHSUShootServerGrenade(this->m_pPlayer->pev, theStartPosition, theVelocity, BALANCE_VAR(kHandGrenDetonateTime), true);
ASSERT(theGrenade); ASSERT(theGrenade);
theGrenade->pev->dmg = this->mDamage; theGrenade->pev->dmg = this->mDamage;