2 features help!!!! (useful for many ppl i think)
-_O i know thats gonna sound kinda stupid.. but..
1. how can i make a plasma shot? i want a blue energy ball (plasma shot) to fly out of the shooter and explow when it hits something solid like WALL not player. (i want it to go through the players and kill/cuz damage to them) 2. how can i make a suicide bomb that kills me + everything else in the explotion area (even ppl that hide behind boxes or something) PLZ HELP ME ITS THE LAST 2 THINGS!! (after i get this.. my plugin will be fully prepared and ill release it.. its soooooo COOL i played hours with a friend and ITS NOT EVEN FINISHED) its a Predator mode. u can pay 16000 money and 10 frags to become a predator predator is invisable, he got better speed and jump. u cant hear him comming.. his knife does X2 damage (he can only use the knife though) [should be able to shoot 1 plasma shoot every round] [should be able to kill himself with a great bomb (killing everything else on the map] I HAVE MODELS I HAVE SOUNDS I HAVE EVERYTHING! PLZ THANKS ALOT I LOVE YOU ALL!! |
Just register the command in plugin_init()
Code:
You need to create an entity for you plasma ball... Code:
Set a name for it Code:
Set the origin Code:
Set the size Code:
Make it solid Code:
Set move type Code:
Set a frame rate for the sprite Code:
Render it to have a sprite as a model Code:
Set Model ( Rember to precache ) Code:
Make it emit a sound ( rember to precache it ) Code:
and thats it to create the entity.... And for the explosion... Register touch in plugin_init() Code:
the touch function.. Note: gExplosionModel is the sprite u use for the explosion model... Code:
and there ya go :) And you may not like the explosion sound it makes when it hits a wall, if you dont, just post back and i can fix that for ya :) |
it looks amazing... O_O
and advanced X_X... VERY, advanced. well.. ill try ^^ THANKS DUDE (and what about the suicide bomb?) |
Code:
this is what i did... and i got 2 errors and 1 warning Code:
<28>warning 213: tag mismatchCode:
<28>entity_set_vector(ePlasmaBall, EV_VEC_origin,origin) |
Maybe you should define the symbol?
Code:
|
[edit] here.. i managed to fix all the errors and this is the script:
Code:
but it doesnt work in the game... it does runtime error.. please help me to fix it.. make it work.. PLZ :( |
Yeah because the origin you are using is not a float.
Code:
And what is the runtime error? |
Code:
please not this makes it repeat the sound every time it finishes....you might want to choose another sound... |
it says
L 11/02/2005 - 04:15:39: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 11/02/2005 - 04:15:39: [AMXX] Run time error 10 (plugin "plasma.amxx") - debug not enable and i fixed the SMA as u said.. but i still get that error.. please see the SMA and help me :\ |
... enable debug maybe?
|
| All times are GMT -4. The time now is 23:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.