Raised This Month: $51 Target: $400
 12% 

Airstrike Slayer


Post New Thread Reply   
 
Thread Tools Display Modes
Swaycher
Senior Member
Join Date: Feb 2009
Location: Arg/MyHome/PawnStudio
Old 05-22-2012 , 16:29   Re: Airstrike Slayer
Reply With Quote #11

you can add an explosion effect.
__________________
Quote:
Originally Posted by fearAR View Post
Claro esta que no tengo idea de como verificar los diferentes cortes de ángulo.
http://forums.alliedmods.net/showthread.php?t=196349
Swaycher is offline
Send a message via MSN to Swaycher Send a message via Skype™ to Swaycher
Miley Demasturbot
Junior Member
Join Date: Feb 2011
Location: Kiev, Ukraine
Old 05-23-2012 , 17:21   Re: Airstrike Slayer
Reply With Quote #12

Quote:
Originally Posted by Swaycher View Post
you can add an explosion effect.
Thanks for the idea! I will add an explosion effect with no damage (I don't see any reason for harming innocent players around the victim) in the next release, when there are enough ideas for updating.

Last edited by Miley Demasturbot; 05-23-2012 at 17:24.
Miley Demasturbot is offline
Send a message via ICQ to Miley Demasturbot
Swaycher
Senior Member
Join Date: Feb 2009
Location: Arg/MyHome/PawnStudio
Old 05-23-2012 , 18:11   Re: Airstrike Slayer
Reply With Quote #13

Try to produce the explosion all over the map and not only about the user who dies, I made a single code, but the explosion is created around the player who is affected.

PHP Code:
new Float:vOrigin[3];
pev(id,pev_origin,vOrigin);
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYvOrigin0);
write_byte(TE_EXPLOSION);
engfunc(EngFunc_WriteCoord,vOrigin[0]);
engfunc(EngFunc_WriteCoord,vOrigin[1]);
engfunc(EngFunc_WriteCoord,vOrigin[2]);
write_short(g_sprite_explosion); // "sprites/zerogxplode.spr"
write_byte(30);
write_byte(15);
write_byte(0);
message_end(); 
__________________
Quote:
Originally Posted by fearAR View Post
Claro esta que no tengo idea de como verificar los diferentes cortes de ángulo.
http://forums.alliedmods.net/showthread.php?t=196349
Swaycher is offline
Send a message via MSN to Swaycher Send a message via Skype™ to Swaycher
XINLEI
me too
Join Date: Jun 2011
Location: Colombian Coffee storage
Old 05-23-2012 , 21:19   Re: Airstrike Slayer
Reply With Quote #14

Don't add this thing if the airstrike is for everyone, i'll look ridiculous.
XINLEI is offline
Miley Demasturbot
Junior Member
Join Date: Feb 2011
Location: Kiev, Ukraine
Old 05-24-2012 , 11:10   Re: Airstrike Slayer
Reply With Quote #15

Quote:
Originally Posted by Swaycher View Post
Try to produce the explosion all over the map and not only about the user who dies
Have you actually looked over the code? There are screen shakes and fades seen to everybody, if the global airstrike has been triggered. Tripmines and snarkes are also destroyed (to be authentic). So this is the explosion all over the map. I don't get why should I deal with TE_EXPLOSION here.
Miley Demasturbot is offline
Send a message via ICQ to Miley Demasturbot
Old 05-24-2012, 17:48
Moh Es
This message has been deleted by Exolent[jNr]. Reason: Advertising server.
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-02-2012 , 05:46   Re: Airstrike Slayer
Reply With Quote #16

Some things :
  • Don't check if a string is empty with a native like equali, use simply : if( !arg[0] )
  • Cache any game message. (ScreenFade, etc..)
  • No need to check if task exists before remove it
  • In Ultimate_Boom : FYI, the minimum time in set_task is 0.1. You can't go below. So, writting 0.0 will be 0.1. Since this function is called already from a task, it doesn't make sense to use again set_task. Call directly Boom and Kill_Stuff. You can also remove is_user_connected check since you checking if the user is alive after.
  • Why are you "removing" the entities of tripmines/snark instead of killing them ? Call Ham_Killed on them, then they will explode with the effects and will be removed automatically.
  • About the siren/jet sound : Using stopsound is a poor method since it will be stop any sounds. You should avoid it. If the purpose is to stop a specific sound, the current way is inappropriate. What I suggest : for all players, you can use emit_sound with ATTN_NONE ; it will make the sound everywhere. To stop the sound, simply use the same native but with SND_STOP flag. For a specific player, you can use the engine message SVC_SPAWNSTATICSOUND. Use MSG_ONE, provide a null vector and a valid entity. To stop the sound, use SVC_STOPSOUND with the entity used. Actually you can use such engine message for all players, well, just try & decide. ;)
__________________

Last edited by Arkshine; 06-02-2012 at 05:46.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-17-2012 , 13:25   Re: Airstrike Slayer
Reply With Quote #17

No answers/changes after more than 15 days. Assuming author is inactive.

Unapproved for now.
__________________

Last edited by Arkshine; 06-18-2012 at 03:34.
Arkshine is offline
Miley Demasturbot
Junior Member
Join Date: Feb 2011
Location: Kiev, Ukraine
Old 06-17-2012 , 22:04   Re: Airstrike Slayer
Reply With Quote #18

Well, there are people who are sometimes busy working... And you don't have to blame such people.
I will update the plugin, that's for sure. And thanks for the tips.
Miley Demasturbot is offline
Send a message via ICQ to Miley Demasturbot
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-18-2012 , 03:34   Re: Airstrike Slayer
Reply With Quote #19

No need to justify you. It's unapproved temporary. Like said, it's just to clean up the other section. Once you are active and can make changes, it will be reviewed again.
__________________
Arkshine is offline
eniyac
Junior Member
Join Date: Mar 2012
Old 08-25-2012 , 06:47   Re: Airstrike Slayer
Reply With Quote #20

WOW.. Nice
eniyac 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 03:23.


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