View Single Post
Author Message
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 07-11-2009 , 01:31   [TF2] First Blood Crits (1.0)
Reply With Quote #1

First Blood Crits (1.0)


This was a plugin request by someone. Thought id just post it for whatever, maybe someone might find it entertaining....


Description: Player who gets first kill when round starts is awarded with specified duration of 100% crits.


Plugin autocreates config: plugin.firstbloodcrits.cfg Heres cvars anyways.......

Cvars:
sm_firstbloodcrits_enabled "1" //Enable/disable cvar
sm_firstbloodcrits_emitsound "1" // Emit the first blood sound and timer files?? (1/0 = yes/no)
sm_firstbloodcrits_bdaysound "1" //Emit the birthday sound file? (1/0 = yes/no)
sm_firstbloodcrits_msg "1" // Display first blood crits msg? (1/0 = yes/no)
sm_firstbloodcrits_timer "1" //Enable the center screen timer countdown? (1/0 = yes/no)
sm_firstbloodcrits_period "10.0" // Period in seconds for crits duration
sm_arenafirstblood 1.0 //Enable tf2 first blood cvar in arena mode? (1/0 = yes/no)




Changelog:

Code:
10/6/10 - v1.0 - Various re-codes and code optimizations.....
1/21/10 - v0.9 - Added some particle effects. Added bday sound file w/CVAR.  Also added a 5 sec timer countdown sound file.
1/19/10 - v0.8 - Coded the convar changes a bit more properly. Put default duration to 10 instead of 5. Few other small things.
1/5/10 - v0.7 - Fixed dead ringer triggering first blood crits. Small coding error.
8/17/09 - v0.6 - Due to new tf2 update giving a cvar to enable/disable arena first blood, I have added a cvar in my plugin to toggle this. (note: My plugin itself is still auto-disabled in arena, the cvar is for tf2's own first blood in arena) Per request, also added a cvar for the on screen timer.  Renamed: sm_firstbloodcrits_time --> sm_firstbloodcrits_period
8/17/09 - v0.5 - Few slight adjustments and added few more killtimer checks to try and fix the display timer being incorrect bug.
Credits: Credits to BrutalGoerge, as I used some of his 'orgasm' plugin for basis of first blood checking.

Any issues or suggestions lmk......
Attached Files
File Type: sp Get Plugin or Get Source (firstblood_crits.sp - 3305 views - 13.2 KB)

Last edited by retsam; 10-07-2010 at 02:21. Reason: new version
retsam is offline