Grenade stuff + Kill money
I'm having problems with grenade stuff and the Kill money plugin in Condition Zero
1. How would I detect when a grenade touches the player and then make the grenade explode on touch. 2. I'm trying to detect if a player is killed with a grenade. Code:
3. This plugin doesn't seem to work. Code:
EDIT: 2. and 3. fixed. |
Re: Grenade stuff + Kill money
A little bit of register_touch() would make you happy, I assume.
Just gotta find the thrown hegren classname, and you're sorted. (To make a nade explode, I think you set its next think time to now+0.1 ) EDIT: It's called "grenade" Here is how to do it with FakeMeta : PHP Code:
|
Re: Grenade stuff + Kill money
Quote:
EDIT: Haha |
Re: Grenade stuff + Kill money
This is actually much easier with engine, since the "register_touch" function allows you to input the two classnames.
So we don't have to examine the two touchers - we know they are a player and a nade. PHP Code:
|
Re: Grenade stuff + Kill money
Dunno if you set the nade think will make it explode but, setting
Code:
set_pev(ent, pev_dmgtime, 0.0) |
Re: Grenade stuff + Kill money
Ok I got it working, thank you both.
|
| All times are GMT -4. The time now is 16:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.