Raised This Month: $ Target: $400
 0% 

HL -> Event for rocket launch?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DahVid
Senior Member
Join Date: Jun 2005
Old 08-21-2005 , 01:05   HL -> Event for rocket launch?
Reply With Quote #1

I'm trying to change rpg_rocket's model. I don't want to do a set_task because it's a waist. Is there a event for rpg fire??
DahVid is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-21-2005 , 01:07  
Reply With Quote #2

If you just want to change the model then you can catch FM_SetModel
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
DahVid
Senior Member
Join Date: Jun 2005
Old 08-21-2005 , 01:08  
Reply With Quote #3

Sorry, I don't understand how to do that... Further explain?
EDITTED**
I Try to do now, using forward.
DahVid is offline
DahVid
Senior Member
Join Date: Jun 2005
Old 08-21-2005 , 01:55  
Reply With Quote #4

Code:
#include <amxmodx> #include <amxmisc> #include <engine> #include <fakemeta> public plugin_init() {     register_plugin("Drevil Ammo","0.1","DahVid")     register_forward(FM_SetModel,"ChangeAmmo",1) } public plugin_precache() {     precache_model("models/zombie.mdl") } public ChangeAmmo(entity,model[]) {     if(equali(model,"models/rpgrocket.mdl")==1) {         entity_set_string(entity,EV_SZ_model,"models/zombie.mdl")     }     return FMRES_IGNORED }
Not working.
DahVid is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-21-2005 , 02:04  
Reply With Quote #5

Code:
#include <amxmodx> #include <amxmisc> #include <engine> #include <fakemeta> public plugin_init() {     register_plugin("Drevil Ammo","0.1","DahVid")     register_forward(FM_SetModel,"ChangeAmmo",0) } public plugin_precache() {     precache_model("models/zombie.mdl") } public ChangeAmmo(entity,model[]) {     if(equali(model,"models/rpgrocket.mdl")==1) {         entity_set_model(entity,"models/zombie.mdl")         return FMRES_SUPERCEDE     }     return FMRES_IGNORED }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
DahVid
Senior Member
Join Date: Jun 2005
Old 08-21-2005 , 02:09  
Reply With Quote #6

Thankyou, again, for expanding my knowledge on the fakemeta module!
DahVid is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode