From 3c4b144cd9b4c59e546e5c1ea7c10cd42b33aa9a Mon Sep 17 00:00:00 2001 From: tankefugl Date: Tue, 26 Jul 2005 01:32:32 +0000 Subject: [PATCH] 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 --- releases/3.1/Balance.txt | 3 ++- releases/3.1/source/mod/AvHGrenade.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/releases/3.1/Balance.txt b/releases/3.1/Balance.txt index 8b808a0..08dad3e 100644 --- a/releases/3.1/Balance.txt +++ b/releases/3.1/Balance.txt @@ -129,13 +129,14 @@ #define kGorgeCost 10 #define kGorgeGestateTime 10 #define kGorgeHealth 150 -#define kGrenDetonateTime 0.75 +#define kGrenDetonateTime 2 #define kGrenadeDamage 125 #define kGrenadeForce 800 #define kGrenadeLauncherCost 15 #define kGrenadeRadius 350 #define kGrenadesResearchCost 10 #define kGrenadesResearchTime 45 +#define kHandGrenDetonateTime 0.75 #define kHGDamage 20 #define kHGMaxAmmo 30 #define kHGMaxClip 10 diff --git a/releases/3.1/source/mod/AvHGrenade.cpp b/releases/3.1/source/mod/AvHGrenade.cpp index 2e182f4..b524938 100644 --- a/releases/3.1/source/mod/AvHGrenade.cpp +++ b/releases/3.1/source/mod/AvHGrenade.cpp @@ -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? - 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); theGrenade->pev->dmg = this->mDamage;