Home » PLAYER'S HQ 1.13 » v1.13 General Gameplay Talk » Handgrenades
Re: Handgrenades[message #278815] Thu, 28 April 2011 18:02 Go to previous messageGo to previous message
ctiberious is currently offline ctiberious

 
Messages:605
Registered:March 2007
Smoke grenade is ubWeight=6, at least according to the items.xml I'm using.

And I guess I'm not understanding your math cause "2 + ( 100 / (3 + 5 / 3 )) == 37" is not a true statement. That equation adds up to 23 (27 with rounding), not 37. And with a 50 strength the equation adds up to 16 (18 with rounding), not 26.

Also you have to remember to use the correct rounding. Because we're working with unsigned integers, the code strips out decimals at each step. So:

iRange = 2 + (100 / (3 + 5 / 3)) [5/3=1.667 which rounds to 1]
iRange = 2 + (100 / (3 + 1))
iRange = 2 + (100 / 4)
iRange = 2 + 25 == 27

Of course, since the weight is actually 6, the result should really be 22 at STR=100 and 15 at STR=50.

And I routinely play with visual range set to 15 (giving normal, unaided sight range of about 30 tiles) instead of the base 13 and I still don't get a rain of grenades. I've tried increasing the sight range beyond 15 but the only problems I noticed there were enemies wasting ammo trying to shot 40+ tiles with a pistol. No excessive grenade use, though.

Report message to a moderator

First Sergeant
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: JA2 1.13 - Runtime Error at launch
Next Topic: What is "External Attachment 2" for? Other BETA comments too...
Goto Forum:
  


Current Time: Wed Feb 19 03:54:49 GMT+2 2025

Total time taken to generate the page: 0.01165 seconds