AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Super Builds ( Stronger Buildables ) (https://forums.alliedmods.net/showthread.php?t=73837)

teddyruxpin 07-07-2008 03:51

[TF2] Super Builds ( Stronger Buildables )
 
2 Attachment(s)
I have created this beta plug-in to allow TF2 server admins to adjust the amount of health their buildables will have. This is a global setting so ALL buildables will be affected by it. This plugin is very useful on hosts that have modified their crit, fire rates to 100% or modified the hosts various weapons*.ctx files to adjust the fire rate or damage rates. ( Note 100% crits damage has no additional damage effect on the buildables )

Current CVARs:
Code:

sm_superbuilds

sm_superbuilds_on =
1 Enable
0 Disable

sm_superbuilds_maxhealth = 500 ( Buildable will have 500 HP MAX )
sm_superbuilds_minhealth = 400 ( Buildable will have 400 HP MIN )

I would like to be able to break this down further to specific buildable types in the future for finer grain control. Any input to improve this plug-in would be appreciated.

EDIT: 07/17/2008 - Removed the ability to set the ammo_shells. This was causing some hosts to crash when a dispenser was built. If you are seeing this problem please get the latest release of the plug-in.

-Note I have been told by a few authors on IRC the method I am using is incorrect. If you have a better method please show me an example and I will modify this plug-in to suite.

-Thanks to Liam for pointing out a bug in the previous version.

-Teddy

Cooltad 07-07-2008 07:06

Re: [TF2] Super Builds ( Stronger Buildables with more ammo )
 
No offense but there are already cvars you can use to make sentries and all buildables stronger.
There are also cvars for how much ammo costs etc and even one for infinite sentry ammo.
In fact there is even a cvar that controls the damage sentries do.

..those were the cons.
Pros:
Useful because now we would be able to see how much health sentries have. So a normal sentry has 500 health?

I mean I don't really mean to be mean but truthfully there is no need for this plugin unless you can control individual buildables' strengths.

teddyruxpin 07-07-2008 10:26

Re: [TF2] Super Builds ( Stronger Buildables with more ammo )
 
Quote:

Originally Posted by Cooltad (Post 649005)
No offense but there are already cvars you can use to make sentries and all buildables stronger.
There are also cvars for how much ammo costs etc and even one for infinite sentry ammo.
In fact there is even a cvar that controls the damage sentries do.

..those were the cons.
Pros:
Useful because now we would be able to see how much health sentries have. So a normal sentry has 500 health?

I mean I don't really mean to be mean but truthfully there is no need for this plugin unless you can control individual buildables' strengths.

If you are talking about the various tf_sentry* settings available via sm_cvar there is currently none that will allow you to adjust the strength of the various buildables. They will always start with the default strengths. As for the ammo the only one you can adjust recently is the 'ammohack' that allows for unlimited ammo.

Please check your sources before you state this plugin is redundant and it is not needed. I have yet to find any that do the same changes.

-Teddy

pheadxdll 07-07-2008 12:42

Re: [TF2] Super Builds ( Stronger Buildables with more ammo )
 
Would it be possible to raise the strength of say dispensers and teleportors but not oppressive buildings like sentries?

teddyruxpin 07-07-2008 12:49

Re: [TF2] Super Builds ( Stronger Buildables with more ammo )
 
Quote:

Originally Posted by pheadxdll (Post 649104)
Would it be possible to raise the strength of say dispensers and teleportors but not oppressive buildings like sentries?

Yes once I figure out how to do more finer grain control with some if statements it should be possible to set the strength of each type of buildable (Sentry Gun, Dispenser, Tele's) and then for the SG set the amount of rocket ammo and bullet shells it will have on spawn.

Thanks,

-Teddy

Neo Cool Dude 07-07-2008 15:07

Re: [TF2] Super Builds ( Stronger Buildables with more ammo )
 
Cool plugin I needed something like this.

Someone told me crit damage didn't affect buildings is that true?

Cooltad 07-07-2008 15:16

Re: [TF2] Super Builds ( Stronger Buildables with more ammo )
 
Quote:

Originally Posted by Neo Cool Dude (Post 649172)
Cool plugin I needed something like this.

Someone told me crit damage didn't affect buildings is that true?

True.

Neo Cool Dude 07-10-2008 16:56

Re: [TF2] Super Builds ( Stronger Buildables with more ammo )
 
So what's the normal sg hp?

Cooltad 07-10-2008 17:57

Re: [TF2] Super Builds ( Stronger Buildables with more ammo )
 
Quote:

Originally Posted by Neo Cool Dude (Post 650844)
So what's the normal sg hp?

I'm guessing its 400.

Liam 07-10-2008 19:50

Re: [TF2] Super Builds ( Stronger Buildables with more ammo )
 
Teddy,

Code:


for (new i=1;i <= MaxEntities; i++)
{
if (IsValidEntity(i))
{
GetEntityNetClass(i, String:strClassName, 64)
if (strcmp(String:strClassName, "CObjectSentrygun", true) == 0 || strcmp(String:strClassName, "CObjectDispenser", true) == 0 ||strcmp(String:strClassName, "CObjectTeleporter", true)
== 0)
{
//Change the ojbects's health
SetEntData( i , FindSendPropOffs("CObjectSentrygun","m_iMaxHealth") , GetConVarInt(Cvar_MaxHealth), 4, true );
SetEntData( i , FindSendPropOffs("CObjectSentrygun","m_iHealth") , GetConVarInt(Cvar_MinHealth), 4, true );
SetEntData( i , FindSendPropOffs("CObjectSentrygun","m_iAmmoShells") , GetConVarInt(Cvar_AmmoShells), 4, true );
//SetEntData( i , FindSendPropOffs("CObjectSentrygun","m_iAmmoRockets") , GetConVarInt(Cvar_AmmoRockets), 4, true );
 
}
}
}

The loop your using there doesn't set the other items. Your finding them, but then your only setting CObjectSentrygun?


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

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