AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn (https://forums.alliedmods.net/showthread.php?t=78768)

Lord Max 10-10-2008 14:10

InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn
 
1 Attachment(s)
This is a first plugin from me. I came up with the idea for an InstantUber plugin when I found that, firstly, not many people were going medic, and secondly, medics would be alot more useful (eg: getting people out of camping situations) if they spawned with an UberCharge. InstantUber was born.

Before I go on to talk about the plugin, I must thank Antithasys at myTF2 who gave me alot of guidance and support through making the plugin. Antithasys guided me through the plugin helping me with much of the code and explaining what went where and why. I would just like to thank him here for helping.

The amount of UberCharge given on spawning is 100% by default but this can be changed in the *.cfg file that will be created when the plugin is loaded onto the server. 1.0 being 100% 0.5 being 50%, etc. Public tracking cvar is in line 21 - edit this to alter the amount of 'UberCharge' given.

The plugin has had all errors fixed and has been running smoothly on my server for about a day now. The plugin is quite popular on there and people seem to think it serves a good purpose.

Enjoy the plugin,

Lord Max & Antithasys

teddyruxpin 10-10-2008 14:31

Re: InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn
 
Good job on your first plugin. One tip you may want to explain the CVAR's so that other people do not need to read the source code or fiddle with the plugin to figure it out themselves.

iuber_uberlevel = CreateConVar("iuber_uberlevel", "1.0", "Uber level to give medics on spawn", _, true, 0.0, true, 1.0);

-Teddy

abelp 10-10-2008 14:54

Re: InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn
 
Congrats!!!

Spikeectf2 10-10-2008 17:08

Re: InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn
 
http://forums.alliedmods.net/showthread.php?p=570672 this plugin does the same thing already sm_ubercharge "name" or sm_medipacks_ubercharge 100 - Give medics a default UberCharge on spawn released in jan 2008.

Antithasys 10-10-2008 17:16

Re: InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn
 
Yes, but it also has a lot of other features that people mite not want, including calls OnGameFrame()

This is just what it says.

abelp 10-10-2008 17:40

Re: InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn
 
I use
sm_cvar weapon_medigun_charge_rate 1
sm_cvar weapon_medigun_chargerelease_rate 8
But I like your plugin becuase i dont have to write it in the mapname.cfg

Liam 10-11-2008 20:42

Re: InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn
 
Can you add a public tracking cvar?

Antithasys 10-11-2008 21:52

Re: InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn
 
It's there. Line 21.

bl4nk 10-11-2008 22:00

Re: InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn
 
He means to your post.

Antithasys 10-11-2008 22:03

Re: InstantUber - Team Fortress 2 Plugin that gives Medic 100% UberCharge on respawn
 
Oh, lol. Have to get Lord Max to do that.


All times are GMT -4. The time now is 06:20.

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