Solid entity follows player, and when touches him, does dmg
Okay, I need a help. I'm trying to make a plugin with all sorts of pickups, etc.
So, idea for this thing is to create entity which has his own model, his speed and is solid, and when entity is released by owner player, it catches closest enemy and when touches him does the damage. So, mine questions are: How to make that entity stays close to players origin untill player releases binded button for creationg of entity? SO, basic idea is while your holding pressed button, it isn't released, and when you release the button it will launch? How to give that entity its own speed? How to make it follows closest enemy? How to make it that when it touches something it explodes and if its player damages him? Thanks alot . |
If im not wrong, this would be crappy if you aren't going to use waypoints for the etinity like bots do...
|
No, it won't be crappy because for mod I'm making for it maps have ALOT of space.
Or, if it would be easier for you guys - just show me how can I make it that it goes on spot I looked after I released entity ( it should not follow crosshair position ). |
give it speed by setting its velocity. Look at the beyonder superhero for a reference for moving and following a player, but be sure to give credit. And for the two entities touching, use
Code:
|
Well, I'm gonna look. BUt how to make when it touches player it kills him?
And I think setting speed of entity can be done with entity_get_int ? |
Okay, I got this:
Code:
Now, it gives tons of errors... Can you guys fix it for me? AND, how do I make it goes directly on position I'm looking at ( where crosshair is ). Or, how to make it go on position where I looked at while launching was in progress... HELP... |
| All times are GMT -4. The time now is 16:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.