PDA

View Full Version : Damage trigger & grenade



randall
20th October 2013, 20:10
Hi,

i made a botzom for a year and ever since a problem annoys me; I placed trigger_damages on the map and linked to the bots with script (=hitbox). It works fine, except for grenades. I'm throwing grenades all day next to the bots, but it wont hurt them. Knows somebody why? But if i dont link the hitboxes, the triggers get hits from grenades... In Radiant there is nothing checked in the entity window, so i have no ideas.

Randall

serthy
20th October 2013, 20:48
- you can check for enableGrenadeTouchDamage() or some similar sounding functions
- in radiant, there are some checkboxes for flags, arent they? maybe you can trailnerror with them abit

otherwise its sounding like a bug inthe cod2 engine... unfortunately

kung foo man
20th October 2013, 20:54
With the setAlive-function in libcod I've never had problems with nades, maybe you want to switch? Then you also don't need hurt-triggers anymore and that makes stock-maps with bots possible. Also the collision detection for xmodels is way more precise. :D

randall
21st October 2013, 13:39
I already have a server and dont want to pay for another one with libcod. :D
The hitboxes look like:
trigger_damage linked to a brushmodel (for collision)
and brushmodel is linked to the bots

IzNoGoD
21st October 2013, 15:09
As per tally's suggestion, try:

http://www.zeroy.com/script/weapons/enablegrenadetouchdamage.htm

randall
21st October 2013, 18:53
I tried it, its only enable to hit the trigger by throwing the grenade in. But funny :D