Possible to throw multiple HE's?
is it possible to throw multiple HE gnades? in the script im writing, a player gets a gun that launches multiple HE nades (gun is just a HE skin). i want something like 10 HE's at the same time, or near same time. will it work?
|
Re: Possible to throw multiple HE's?
I think you'll have to make your own HE grenade, and throw it on attackbutton.
The are some other plugins that have there own grenade, you should try the search button :) |
Re: Possible to throw multiple HE's?
i think thats a little above your head but you can try it . What your going to have to do is create an entity ("info_target") then give the entity a model , and connect it to the player suing the ~IN_ATTACK button , when the press attack then you set the vectors and origins in the direction there aiming . then use pfn_touch or register_touch to tell when a grenade touches a player and do damage. :wink:
|
Re: Possible to throw multiple HE's?
Quote:
|
Re: Possible to throw multiple HE's?
Instead of creating it with the classname "info_target" (sort of a generic entity), you can just set the classname to "grenade", set some values on it (like think), and maybe CS will handle it...
|
Re: Possible to throw multiple HE's?
Here is a dump for you when the grenade was thrown from the player:
Code:
Printing out entity #102 variable information...I think a key factor is this: pev_dmgtime = 70.550 (current time is 69.921) I did a few dumps and it seems like dmgtime is when it explodes. |
Re: Possible to throw multiple HE's?
Wouldn't it be easier to hook when a user pushes attack, check if its a grenade, and then give the user another grenade and force him to the grenade slot, force him to throw it, looped 10 times?
OR change the clipammo for the nade to 10, give ten nades, and just force slot and attack 10 times? I wonder how fast they would be thrown using this method though... |
Re: Possible to throw multiple HE's?
You are forgetting possible weaponchanges after one nade, it'll interupt.
|
Re: Possible to throw multiple HE's?
Quote:
|
Re: Possible to throw multiple HE's?
if i created 10 ents and gave them all the he nade mdl,then i would need to make them appear upon relase of the orignal HE and then give them damage when they explode? i want to use this method unless there is an easier way.
oh and btw what is a dump? i dont know so can someone tell me? |
| All times are GMT -4. The time now is 06:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.