I'm working on mod'ing the frag grenades from HL2DM to simulate a
baseball like object.


Here's what I've done so far:

I've removed the explosion from the grenade. It no longer deals any
radial damage. I did this by overriding the detonate and explode
methods within CfragGrenade.

The damage that being done is through the VUpdatePhysics method. The
code refers to the damage it's doing there as a slight bonk, I'm
overriding the damage amount to what I want. and it this works well.
(I'm also removing the frag if it does damage this way)


Here's two issues I'm not sure how to fix...

1. The frag doesn't deal any damage to func_breakable or
func_breakable_surf ...that is no window breaking... but will interact
with a breakable_surf that is already broken. This is the normal
behavior of un-modded frag grenades.

2. If I throw\drop a frag. my buddy picks it up with the grav-gun and
then punts it back at me. The Frag will pass through me as if I wasn't
there and dealing no damage.

-Grash









      
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to