View Single Post
Old 10-28-2012, 09:05 PM   #98
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
And, in case you're curious, here's the math for calculating damage done when a bag explodes from an EMP (this is the damage of the explosion; but, the explosion happens at the bag's location, so it likely won't be doing full damage):

Code:
	int ammo = 0;

	for (int i = 1; i < MAX_AMMO_SLOTS; i++)
		ammo += m_iAmmoCounts[i];

	ammo += m_iGren1;
	ammo += m_iGren2;

	return int (ammo / 2) ;
It basically just adds all ammo counts up and divides by two.
__________________
#FF.Pickup ยค Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington

Last edited by squeek.; 10-28-2012 at 09:05 PM.
squeek. is offline   Reply With Quote