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

[EXTENSION] War plugin and extension


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wazz
SourceMod Donor
Join Date: Mar 2009
Old 12-11-2009 , 17:55   [EXTENSION] War plugin and extension
Reply With Quote #1

Firstly, sorry if this is the wrong subforum. I'm posting this plugin extension combo here because I don't really want to split this package up and place the plugin in the New Plugins forum and the extension here. And also I can't honestly see this being used an awful lot but since I made it I thought I would share it.

Ok, so what is it?
This plugin reflects the new war in TF2 going on between demomen and soldiers. Players on the red team are forced to play as demomen and all players on the blue team are forced to play as soldier. To spice things up a bit players have a chance of getting 1 of 3 'buffs' when they kill someone.
The 3 buffs are Ubered, Kritzed or both weighted 4:4:1 respectively.

Console Variables:
sm_war_enable: Enable (1) or disable (0) the War plugin. Default 1
sm_war_buffchance: Chance (%) that you will recieve a buff upon killing another player. Default 25.0
sm_war_bufftime: Time in seconds that a player has a buff for. Default 15.0

To install:
  1. If your on a windows server upload war.ext.dll to your sourcemod/extensions/ folder. If you are on linux then upload war.ext.so to sourcemod/extensions.
  2. Upload war.offsets.txt to sourcemod/gamedata
  3. Upload war.smx to sourcemod/plugins
  4. Restart your server


This is just a bit of fun and, for what it is, it's a complete overkill however perhaps some developers will find the extension useful in other projects ;)

Enjoy
Attached Files
File Type: zip war_source.zip (32.4 KB, 272 views)
File Type: so war.ext.so (193.6 KB, 383 views)
File Type: dll war.ext.dll (98.0 KB, 250 views)
File Type: inc war.inc (1.9 KB, 341 views)
File Type: txt war.offsets.txt (1.3 KB, 406 views)
File Type: smx war.smx (5.3 KB, 231 views)
File Type: sp Get Plugin or Get Source (war.sp - 251 views - 5.9 KB)

Last edited by CrimsonGT; 02-26-2010 at 21:23.
Wazz is offline
Xp3r7
SourceMod Donor
Join Date: Jul 2006
Old 12-11-2009 , 20:27   Re: [TF2] War plugin and extension
Reply With Quote #2

That was fast for a plugin/extension to be written about this!

Good work!
__________________
Xp3r7 is offline
Send a message via MSN to Xp3r7
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 12-12-2009 , 01:08   Re: [TF2] War plugin and extension
Reply With Quote #3

What's the point of the CTFGameRules::Activate detour? I can't find any use of the g_pCTFGameRules pointer anywhere (unless I missed something).
bl4nk is offline
Downtown1
Veteran Member
Join Date: Mar 2004
Old 12-12-2009 , 03:40   Re: [TF2] War plugin and extension
Reply With Quote #4

I'm curious why do you need an extension for this?
Downtown1 is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 12-12-2009 , 05:34   Re: [TF2] War plugin and extension
Reply With Quote #5

Ya, the only thing I can see the need for the extension is the sv_tags stuff and changing the description. Everything else you have in there seems useless.
bl4nk is offline
Wazz
SourceMod Donor
Join Date: Mar 2009
Old 12-12-2009 , 09:12   Re: [TF2] War plugin and extension
Reply With Quote #6

g_pCTFGameRules pointer is used in a voice command native. You're right, you could do most of these things without an extension which is why I said it was an overkill. However this plugin was ripped out of some of my personal stuff in an environment where it made sense to have such functionality in the extension. I couldn't be arsed to rewrite it just for a event that's lasting a week
Wazz is offline
ummja
Senior Member
Join Date: Sep 2010
Old 10-16-2010 , 17:27   Re: [EXTENSION] War plugin and extension
Reply With Quote #7

I put it on my server exactly how it was said to...

Plugin didn't work.
ummja is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 10-16-2010 , 18:24   Re: [EXTENSION] War plugin and extension
Reply With Quote #8

The war's over, son.
bl4nk is offline
Reply


Thread Tools
Display Modes

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 00:12.


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