AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] ServerGifts (https://forums.alliedmods.net/showthread.php?t=227975)

Bitl 10-11-2013 19:54

[TF2] ServerGifts
 
3 Attachment(s)
Information:

Spawns a gift with a random weapon in it on Domination, Revenge, First Blood or command. This also has a very rare chance of giving the player a rare weapon (Golden Wrench, Saxxy, Big Kill, etc.)

Commands:

sm_servergifts - Creates a gift.

ConVars:

sm_servergifts_giftsondeath [Default: 1] - Enable/Disable creating gifts on victim death.
sm_servergifts_rareweapons [Default: 1] - Enable/Disable rare weapons.
sm_servergifts_rarechance [Default: 200] - The chance for a rare weapon to drop.
sm_servergifts_bots [Default: 1] - Enable/Disable spawning gifts on bots.
sm_servergifts_botsonlymvm [Default: 1] - Enable/Disable spawning gifts on bots only in Mann vs Machine. Requires sm_servergifts_bots to be 1.

Credits:

DarthNinja for the Fake Gifts plugin, from which this was made out of.

Chaosxk for some code from his Gift mod. (spawning code, particles, etc.)

To do:
- Add Updater support.
- Add different abilities using TF2Attributes, as well as a ConVar to enable/disable the abilities and weapons.

Changelog:

1.2.1:
- Added the sm_servergifts_bots and sm_servergifts_botsonlyinmvm ConVars.

1.2.0:
- Added new weapons from the "Love & War" update.
- The plugin now accurately shows the version number.
- Added the Gold Frying Pan as a rare item.
- Added all "Bread Monster" items as rare items.

1.1.2:

-Fixed a crash that involved trains.

1.1.1:

- Fixed "Array index is out of bounds" error.
- Added "sm_servergifts_rarechance", which allows the ability to change the drop chance of rare weapons.

1.1.0:

- Added more rares:
- All Botkiller weapons.
- The Horseless Headless Horsemann's Headtaker.
- Added "sm_servergifts_rareweapons", which allows enabling or disabling of rare weapons.
- Added translations.

1.0.0:
- Release

Requirements:
- TF2Items: Get it here.
- TF2Items Give Weapon: Get it here.
- TF2Attributes (Will be added in a future version.): Get it here.
- Updater (Will be added in a future version.): Get it here.

NameUser 10-11-2013 21:09

Re: [TF2] ServerGifts
 
I like it. Good work.

Bitl 10-12-2013 14:33

Re: [TF2] ServerGifts
 
Quote:

Originally Posted by NameUser (Post 2047817)
I like it. Good work.

Thanks! I hope to support this as frequently at possible :)

NEW VERSION RELEASED!

1.1.0:

- Added more rares:
- All Botkiller weapons.
- The Horseless Headless Horsemann's Headtaker.
- Added "sm_servergifts_rareweapons", which allows enabling or disabling of rare weapons.
- Added translations.

1.1.1:

- Fixed "Array index is out of bounds" error.
- Added "sm_servergifts_rarechance", which allows the ability to change the drop chance of rare weapons.

Snaggle 10-12-2013 16:55

Re: [TF2] ServerGifts
 
Very cool idea, nice work.

rodrigo286 10-12-2013 17:30

Re: [TF2] ServerGifts
 
Valve allowed this??

Thanks.

Bitl 10-12-2013 18:44

Re: [TF2] ServerGifts
 
Quote:

Originally Posted by rodrigo286 (Post 2048050)
Valve allowed this??

It does not add the item to the backpack, but just gives them the weapon until they disconnect or die.

Snaggle 10-12-2013 20:37

Re: [TF2] ServerGifts
 
Quote:

Originally Posted by rodrigo286 (Post 2048050)
Valve allowed this??

Thanks.

It's just like the Give Weapon plugin.

https://forums.alliedmods.net/showthread.php?p=1337899

Horsedick 10-13-2013 16:57

Re: [TF2] ServerGifts
 
I was testing this and appears its causing a server crash when you go to pick them up.

Oshizu 10-14-2013 17:26

Re: [TF2] ServerGifts
 
Quote:

Originally Posted by Horsedick (Post 2048491)
I was testing this and appears its causing a server crash when you go to pick them up.

If valve didn't fixed this issue yet.
Then the case of crash might be killing entity without restoring it's normal size.

Bitl 10-14-2013 23:56

Re: [TF2] ServerGifts
 
Quote:

Originally Posted by Horsedick (Post 2048491)
I was testing this and appears its causing a server crash when you go to pick them up.

Can you show me your crash log?


All times are GMT -4. The time now is 23:17.

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