Not Dropping
I made this plugin to increase the velocity of a weapon the entity_owner drops . and use register touch to do damage. but this wont allow me to drop any weapons . and theres no run time errors in my logs . any ideas ?
Code:
|
Re: Not Dropping
because you return plugin_handled, this will block that clcmd
use return; |
Re: Not Dropping
kool. i can drop but no velocity increase on hte weapon i drop. or any fakedamge done. Is there something wrong with the way i set the velocity ?:cry:
|
Re: Not Dropping
new name[33];
get_user_name(id,name,32) new index = get_user_index(name); id = index, so three lines above is useless. |
Re: Not Dropping
hmmm. still no increase in velocity . nay ideas why the weapon isnt speeding up on drop ? am i getting the ent index right?
Code:
|
Re: Not Dropping
hooking command drop is a forward, maybe that time the weapon actually not dropped, so you can block it. i don't know the detail. maybe you should add a delay.
|
Re: Not Dropping
entity_set_string(Ent,EV_VEC_velocity,"1000")
this should be an vector not a string this could be improved: fakedamage(id,"weapon_awp",float(25),DMG_CLUB && DMG_BLAST ) to: fakedamage(id, "weapon_awp", 25.0, (DMG_CLUB | DMG_BLAST)) |
Re: Not Dropping
thanks Peanut ++karma:up:
|
| All times are GMT -4. The time now is 07:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.