Raised This Month: $32 Target: $400
 8% 

FF2 Respawn Tickets Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Eggman
Senior Member
Join Date: Jan 2010
Old 02-06-2015 , 23:57   Respawn Tickets Plugin
Reply With Quote #1

It's Me! Hello, everyone!
I've made that plugin about 1/2 year ago and may don't know about current pawncoding patterns. And also don't know about analogues.

Respawn Tickets

Is it boring when you dying in first minute of round? Not now.

This plugins provides limited respawn tickets (shared for whole Team), what can be used by Reload button, but also, Boss' Initial Health is Increased.

Whenever you dies again and again, your respawn delay increases. Whenever your teammates dies too, your respawn delay gets extra decrease.

Also, Team loses even they have tickets, but all of them are dead.

Convars:
ff2_tickets_count_multiplier (1.3) - Tickets per player
ff2_tickets_count_min (5) - Min count of respawn tickets
ff2_tickets_countdown (10) - Initial respawn countdown
ff2_tickets_countdown_increase (10) - Countdown personally increase per death
ff2_tickets_hp_multiplier (0.07) - Boss' health increase per ticket
ff2_tickets_onrespawn (1) - Player respawns in respawn room. 0 - Player respawns in spectating player.


You may place it as *.smx into plugins folder, or as *.ff2 into plugins/freaks, doesn't matter.

Semi-compatible with default Arena Mode, because respawn tickets is shared between BOTH teams, hah.
Attached Files
File Type: sp Get Plugin or Get Source (respawn_tickets.sp - 586 views - 9.5 KB)
File Type: smx respawn_tickets.smx (9.7 KB, 269 views)

Last edited by Eggman; 02-07-2015 at 00:11.
Eggman is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 02-07-2015 , 15:31   Re: Respawn Tickets Plugin
Reply With Quote #2

;o
__________________
~Wliu
Wliu is offline
Research
SourceMod Donor
Join Date: Nov 2011
Old 02-07-2015 , 20:25   Re: Respawn Tickets Plugin
Reply With Quote #3

nice. just nice. I'll put that in my server
by the way, can you fix skeleton king abililty?
Research is offline
Eggman
Senior Member
Join Date: Jan 2010
Old 02-08-2015 , 07:06   Re: Respawn Tickets Plugin
Reply With Quote #4

Quote:
by the way, can you fix skeleton king abililty?
What's wrong with?
Eggman is offline
Research
SourceMod Donor
Join Date: Nov 2011
Old 02-08-2015 , 08:41   Re: Respawn Tickets Plugin
Reply With Quote #5

Quote:
Originally Posted by Eggman View Post
What's wrong with?
PHP Code:
L 02/08/2015 11:35:05: [SMNative "ShowSyncHudText" reportedInvalid client index 280
L 02
/08/2015 11:35:05: [SMDisplaying call stack trace for plugin "freaks/skeleton_king.ff2":
L 02/08/2015 11:35:05: [SM]   [0]  Line 202D:\tfserver\_tfserver\tf\addons\sourcemod\scripting\freaks\skeleton_king.sp::StopTakeDamage() 
this error appears irregularly
Research is offline
Transit Of Venus
Senior Member
Join Date: May 2014
Location: Australia
Old 02-09-2015 , 02:45   Re: Respawn Tickets Plugin
Reply With Quote #6

I have given it a try Eggman, is it ment to buff the bosses HP when no one has used there tickets yet?
Transit Of Venus is offline
Send a message via ICQ to Transit Of Venus Send a message via Skype™ to Transit Of Venus
Eggman
Senior Member
Join Date: Jan 2010
Old 02-09-2015 , 20:09   Re: Respawn Tickets Plugin
Reply With Quote #7

Yea, it should be a message "Max Health of Bosses increased to" when round start.

About Skeleton Fix:

To fix that, add
Code:
if (IsValidClient(attacker))
before
Code:
ShowSyncHudText(attacker, cooldownHUD, "%t","reincarnation_invulnerable",charnaem);
about line 202

Last edited by Eggman; 02-09-2015 at 20:12.
Eggman is offline
Research
SourceMod Donor
Join Date: Nov 2011
Old 02-09-2015 , 23:43   Re: Respawn Tickets Plugin
Reply With Quote #8

Quote:
Originally Posted by Eggman View Post
Yea, it should be a message "Max Health of Bosses increased to" when round start.

About Skeleton Fix:

To fix that, add
Code:
if (IsValidClient(attacker))
before
Code:
ShowSyncHudText(attacker, cooldownHUD, "%t","reincarnation_invulnerable",charnaem);
about line 202
Thanks!
Research is offline
MaloModo
Veteran Member
Join Date: Aug 2008
Old 02-20-2015 , 10:56   Re: Respawn Tickets Plugin
Reply With Quote #9

Thx for this Eggman. Any chance you could add enable/disable cvar? Or perhaps vote on/off? Would be nice to have clients options to vote this on or off. And/or beable to set number of players where it toggles on/off?
MaloModo is offline
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 06-22-2019 , 01:25   Re: Respawn Tickets Plugin
Reply With Quote #10

Code:
L 06/22/2019 - 13:20:16: [SM] Exception reported: Client 21 is not in-game
L 06/22/2019 - 13:20:16: [SM] Blaming: respawn_tickets.smx
L 06/22/2019 - 13:20:16: [SM] Call stack trace:
L 06/22/2019 - 13:20:16: [SM]   [0] ShowHudText
L 06/22/2019 - 13:20:16: [SM]   [1] Line 230, D:\Codes\tf2_freakfortress2\addons\sourcemod\scripting\respawn_tickets.sp::event_player_death
it spawns these and crashs server
Hoto Cocoa 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 20:43.


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