dim3 Forum

Full Version: Gibs!!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have modeled and textures some very nice looking gibs, (If gibs can look nice) and I am going to stick em into dim3. The problem is, I have absolutely no freak'n idea on how to script them. I do not want Q3 Arena style gibs, where after the dead body takes a certain amount of damage it gibs, I want it ONLY to gib when hit by a grenade or rocket. I have no idea how to do this. I assume it would involve scripting some type of if hit by this weapon, play this animation, (the gibs), else, if hit by this weapon, play animation (gibs), else, play this animation (just a flinch).
Is it even possible to check what type of projectile hit a model?

This is the only thing left to do in the blood/gore category, and I'd love to get it done.

Cheers,
Aaron
I'm a decent scripter. I'll help you. Small question though... What's a gib?
Gibs=Body limbs, parts, .ect
Thanks MacHD. All I really need is a way to check what type of projectile hit the enemy. So if its a grenade or rocket, switch to the gibbed mesh, but if it is a bullet, just play the flinch animation.

Code:
obj.hit.projectileName; //string (readonly); Projectile that hit this object (or null if melee)


Just check for it in the death function and switch to the correct mesh using a switch or an if construct.

I also need gibs for my game Line Of Fire :D but I'm not as far with that game as I would like but I have created a document that describes everything for the game, a so-called Functional Design according to my school but I prefer to call it a protocol :p wait this is useless info. My gibs-system will be a bit more complex and a little brutal. For anyone who makes something like a zombie shooter and is interested do email me Wink
Reference URL's