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

TFC Quad,Invul,Invis Powerups


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Team Fortress Classic        Category:   Fun Stuff        Approver:   Xanimos (85)
jRaven
AMX Mod X Beta Tester
Join Date: Jan 2006
Location: IA, USA
Old 09-22-2006 , 00:16   TFC Quad,Invul,Invis Powerups
Reply With Quote #1

/**
|** Description:
|** Team Fortress Classic has quad damage, invisibility to
|** sentry guns, and godmode all as powerups you can get from
|** map entities. This plugin makes them available on command.
|** You can give any number of seconds, or a default of ~27 hours
|** worth of any powerup. You can also expire anyone's powerup(s).
|**
|** Background:
|** I had no commands on my server to give more than the what
|** NeoTF allowed (maximum of 30 seconds) worth of these powerups.
|** That wasn't good enough. I want to give more as needed.
|** Especially on skill/fun maps. This plugin makes that happen.
|**
|** Internally:
|** This creates an info_tfgoal entity with appropriate keyvals
|** at a player's location so they can get the affects,
|** spawning the entity, thinking it, forcing the target to
|** fake-touch it, and then flagging it to be killed/removed.
|**
|** VERY Special Thanks To: "XxAvalanchexX" ( See am44768 )
|**
|** Idea: Control fun powerups that last the player's lifetime!
|**
|** Usage(s):
|** amx_quad <name or #userid> [seconds] - give quad damage for seconds else lifelong
|** amx_invul <name or #userid> [seconds] - give invulnerability for seconds else lifelong
|** amx_invis <name or #userid> [seconds] - give SG invisibility for seconds else lifelong
|** amx_powerups <name or #userid> [seconds] - give quad,invis,invul for seconds else lifelong
|** ---removal commands--- (add "rem" after "amx_")
|** ---NOTE: These are exactly the same as giving a powerup for only 1 second!
|** amx_remquad <name or #userid> - remove a player's quad damage
|** amx_reminvul <name or #userid> - remove a player's invulnerability
|** amx_reminvis <name or #userid> - remove a player's SG invisibility
|** amx_rempowerups <name or #userid> - remove a player's quad,invis,invul
|**
|** Module Required: "engine" for entity manipulation stuff.
|**
|** Changelog:
|** 2007-01-01 @ v1.4 - precache sounds used by NeoTF.
|** ...see issue at http://forums.planetneotf.net/phpBB2/viewtopic.php?t=98
|** 2006-12-22 @ v1.3 - fixed typo where remove commands failed
|** 2006-12-05 @ v1.2 - cleaned code again. Thanks Hawk.
|** 2006-11-25 @ v1.1 - sizeof directives added for safety
|** 2006-11-25 @ v1.0 - added optional number of seconds, as Ramono suggested.
|** also cleaned up code, simplifying some things.
|** 2006-09-27 @ v0.91 - added "amx_rem*" commands to remove powerups.
|** Thank you to SpannerSpammer of NeoTF!
|** 2006-09-22 @ v0.9 - fixed typo in print_chat announce
|** 2006-09-22 @ v0.8 - major simplification of code via an enum, conditionals
|** 2006-09-22 @ v0.7 - fixes, optimizations, etc.
|** 2006-09-21 @ v0.6 - days of work pay off! the beast is alive!
*\*
**\
**/
Attached Files
File Type: sma Get Plugin or Get Source (jr_powerups.sma - 2160 views - 11.2 KB)

Last edited by jRaven; 01-01-2007 at 22:47. Reason: support for neotf precache issue in v1.4
jRaven is offline
Send a message via ICQ to jRaven Send a message via AIM to jRaven
 



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 22:16.


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