Following RPG_ROCKET
Well, I know how to make a trail to my liking, but I don't know how to put it behind the rocket. I was thinking of finding the rocket with FM_SetModel but I also want to try to supercede and ignore the other trail {If possible} any suggestions?
|
maybe this??
#define TE_BEAMFOLLOW 22 // create a line of decaying beam segments until entity stops moving // short (entity:attachment to follow) // short (sprite index) // byte (life in 0.1's) // byte (line width in 0.1's) // byte,byte,byte (color) // byte (brightness) |
... How would I target entity? Surely if I put rpg_rocket there it wouldn't work, will it?
|
Code:
See if it works. |
It works, but is there anyway to kill the old one? ooooo
Also, how does it now ent is RPG_ROCKET? I don't understand.. |
FM_SetModel is called when an entity is given a model. Every time that happens, we see if it is being given the model "models/rpgrocket.mdl" -- if it is we assume it's an RPG rocket, give it another model, and call the function set_trail, passing the entity ID along. In set_trail we send a message to have a beam follow the entity we told it to.
|
| All times are GMT -4. The time now is 14:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.