AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Trophies (https://forums.alliedmods.net/showthread.php?t=104536)

BDeep 09-24-2009 18:34

Trophies
 
5 Attachment(s)
Authored by: Stinkyfax
Requested and paid for by [sG] Serious Group

A port from an ES Script.

// This file was auto-generated by SourceMod (v1.2.3)
// ConVars for plugin "trophies.smx"


// Distance within which a player can claim a trophy.
// -
// Default: "25"
// Minimum: "0.000000"
trophies_claimdistance "25"

// Delay in seconds to save the data. (Float)
// -
// Default: "600.0"
// Minimum: "50.000000"
trophies_delay "600.0"

// Time in seconds before the trophy disappears.
// -
// Default: "30.0"
// Minimum: "0.000000"
trophies_duration "30.0"

// If 1 - Spectators can claim trophies
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
trophies_spectatorclaim "0"


bind a key to "claim' to claim the trophies

you can type
ttop10
trank
trophies

for trophy information.

I will support this plugin the best I can. I am not sure about Stinkyfax but post here if you have issues. Dont PM me or Stinkyfax for help.

Updated to Version 1.2
1. Added trophies_duration - See the default CFG above.

Updated: Changed to Version 1.1 (hope you dont mind Stinkyfax)
1. Added sound to signify the Trophy was collected.
2. Added chat to signify that the Trophy was collected

Thanks to Stinkyfax and PenguinPrince

Stinkyfax 09-24-2009 18:45

Re: Trophies
 
Yup, that's true.
Plugin can be ported to any game with only checking for round_end/start events and sprites for the effect

PenguinPrince 09-28-2009 00:41

Re: Trophies
 
1 Attachment(s)
I love this plug-in but I wasn't fond of how it didn't let you know when you picked up a trophy.

So I added a line to print to the client that they picked up the trophy and added in some lines to also give it a confirmation sound that it was picked up.

all together though great plug-in :mrgreen:

Stinkyfax 09-28-2009 06:27

Re: Trophies
 
1 Attachment(s)
Quote:

Originally Posted by PenguinPrince (Post 945523)
I love this plug-in but I wasn't fond of how it didn't let you know when you picked up a trophy.

So I added a line to print to the client that they picked up the trophy and added in some lines to also give it a confirmation sound that it was picked up.

all together though great plug-in :mrgreen:

Thanks, I've slightly modified those lines so that there is no "loose identification" and message is coloured.

Dragonshadow 09-28-2009 09:25

Re: Trophies
 
How about a cvar to let you pick it up by walking over/into it instead of having to bind a key?

noodleboy347 09-28-2009 12:42

Re: Trophies
 
I don't understand what types of trophies these are. How do you get them, and why do you get them?

BDeep 09-28-2009 12:52

Re: Trophies
 
Quote:

Originally Posted by Dragonshadow (Post 945732)
How about a cvar to let you pick it up by walking over/into it instead of having to bind a key?

Stinkyfax would definatly have to handle that request.

BDeep 09-28-2009 12:54

Re: Trophies
 
Quote:

Originally Posted by noodleboy347 (Post 945893)
I don't understand what types of trophies these are. How do you get them, and why do you get them?

You can get them by collecting them (bind <key> claim) after a player dies, the trophy will be where the player was when they were killed

You get them for the fun of it, or in our case we use them for a monthly prize. Who ever has the most at the end of a month wins that months prize.

BDeep 09-28-2009 13:02

Re: Trophies
 
Updated the first post plugin to include the changes that Stinkyfax and PenguinPrince made.

BDeep 10-01-2009 13:09

Re: Trophies
 
Updated sound file to a CSS sound file and added the Trophy Timeout CVAR

Thanks to Stinkyfax for the timeout.


All times are GMT -4. The time now is 05:27.

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