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

[TF2] Advanced Infinite Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Tylerst
Veteran Member
Join Date: Oct 2010
Old 07-19-2015 , 18:34   Re: [TF2] Advanced Infinite Ammo
Reply With Quote #451

Updated to 1.4.3
-Changed infinite sentry ammo coding to OnEntityCreated instead of the player_built_object event
-Changed adding/removing the sentry infinite ammo flag to take into account current flags instead of overwriting them.

I was notified last night that sentries spawned through plugins(Building Spawner, RTD, etc) weren't getting infinite ammo. Should be fixed now.
It was because they don't fire the player_built_object event. OnEntityCreated should catch everything, even plugin spawned ones. Also, it will no longer overwrite the current spawnflags.

Last edited by Tylerst; 07-19-2015 at 20:12.
Tylerst is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 07-19-2015 , 20:37   Re: [TF2] Advanced Infinite Ammo
Reply With Quote #452

Updated to 1.4.4
-Fixed a few bugs with new sentry coding

Changing to OnEntityCreated caused a few unforeseen problems. All good now.

Last edited by Tylerst; 07-19-2015 at 20:45.
Tylerst is offline
Pala4
Senior Member
Join Date: Dec 2007
Old 07-23-2015 , 07:11   Re: [TF2] Advanced Infinite Ammo
Reply With Quote #453

Quote:
Originally Posted by Tylerst View Post
Updated to 1.4.4
-Fixed a few bugs with new sentry coding

Changing to OnEntityCreated caused a few unforeseen problems. All good now.
And where version 1.4.4 ? In theme download version 1.4.3
Pala4 is offline
xXDeathreusXx
Veteran Member
Join Date: Mar 2013
Location: pPlayer->GetOrigin();
Old 07-23-2015 , 14:41   Re: [TF2] Advanced Infinite Ammo
Reply With Quote #454

My update was finished some time ago, but I realized I never released it, so here it is below
Includes all previous features with one added feature, if a dispenser runs out, it will be filled to full
Attached Files
File Type: sp Get Plugin or Get Source (AdvancedInfiniteAmmo.sp - 175 views - 39.6 KB)
File Type: smx AdvancedInfiniteAmmo.smx (21.8 KB, 80 views)
__________________
Plugins|Profile
Requests closed

I'm a smartass by nature, get used to it
xXDeathreusXx is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 07-23-2015 , 14:42   Re: [TF2] Advanced Infinite Ammo
Reply With Quote #455

Quote:
Originally Posted by Pala4 View Post
And where version 1.4.4 ? In theme download version 1.4.3
Quite right, my apologies. 1.4.4 is on the 1st post now.
Tylerst is offline
Pala4
Senior Member
Join Date: Dec 2007
Old 07-23-2015 , 15:16   Re: [TF2] Advanced Infinite Ammo
Reply With Quote #456

Quote:
Originally Posted by Tylerst View Post
Quite right, my apologies. 1.4.4 is on the 1st post now.
Thanks everything works fine
Pala4 is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 07-26-2015 , 22:35   Re: [TF2] Advanced Infinite Ammo
Reply With Quote #457

Spoiler


1.5.0 officially released. See main post.

Last edited by Tylerst; 08-02-2015 at 19:09.
Tylerst is offline
Pala4
Senior Member
Join Date: Dec 2007
Old 07-27-2015 , 09:52   Re: [TF2] Advanced Infinite Ammo
Reply With Quote #458

Quote:
Originally Posted by Tylerst View Post
Just a heads up that I'm going to be releasing a 1.5.0 update with some new features. The code is essentially done but I haven't done much testing aside from basic functionality.

The big changes for 1.5.0 are:

1. sm_aiamenu- This new command will bring up a menu to choose what AIA features the target has access to. You can enable/disable clip/ammo/extrastuff/metal/sentryammo/cloak/spells per player.

Also cvars to globally disable them: sm_aia_clip, sm_aia_ammo, sm_aia_extrastuff, sm_aia_metal, sm_aia_sentryammo, sm_aia_cloak, sm_aia_spells

2. Forward/Natives- I added 2 natives(AIA_HasAIA and AIA_SetAIA) and one forward(AIA_OnAIAChanged) for other plugins to use(see attached include file).

I also went through and did some code optimization here and there on existing stuff.

If you want to try out what I have thus far I've attached it below. Just keep in mind I haven't done extensive testing yet. Hopefully I'll be able to test and do final changes over the next week.

The server crashes with the error

L 07/27/2015 - 16:48:55: [SM] Displaying call stack trace for plugin "AdvancedInfiniteAmmo.smx":
L 07/27/2015 - 16:48:55: [SM] [0] Line 1405, /home/forums/content/files/9/4/3/2/5/146926.attach::SetSpellUses()
L 07/27/2015 - 16:48:55: [SM] [1] Line 693, /home/forums/content/files/9/4/3/2/5/146926.attach::SDKHooks_OnPreThink()
L 07/27/2015 - 16:48:55: [SM] Native "GetEntProp" reported: Property "m_iItemDefinitionIndex" not found (entity 0/worldspawn)
Pala4 is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 07-27-2015 , 11:47   Re: [TF2] Advanced Infinite Ammo
Reply With Quote #459

Quote:
Originally Posted by Pala4 View Post
The server crashes with the error

L 07/27/2015 - 16:48:55: [SM] Displaying call stack trace for plugin "AdvancedInfiniteAmmo.smx":
L 07/27/2015 - 16:48:55: [SM] [0] Line 1405, /home/forums/content/files/9/4/3/2/5/146926.attach::SetSpellUses()
L 07/27/2015 - 16:48:55: [SM] [1] Line 693, /home/forums/content/files/9/4/3/2/5/146926.attach::SDKHooks_OnPreThink()
L 07/27/2015 - 16:48:55: [SM] Native "GetEntProp" reported: Property "m_iItemDefinitionIndex" not found (entity 0/worldspawn)
Try beta2, should be fixed now.

Last edited by Tylerst; 07-27-2015 at 11:51.
Tylerst is offline
Pala4
Senior Member
Join Date: Dec 2007
Old 07-27-2015 , 15:41   Re: [TF2] Advanced Infinite Ammo
Reply With Quote #460

Quote:
Originally Posted by Tylerst View Post
Try beta2, should be fixed now.
Everything works fine, thank you.

Went lag showered errors

L 07/27/2015 - 23:03:57: [SM] Displaying call stack trace for plugin "AdvancedInfiniteAmmo.smx":
L 07/27/2015 - 23:03:57: [SM] [0] Line 1323, /home/forums/content/files/9/4/3/2/5/146949.attach::SetSniperRifleCharge()
L 07/27/2015 - 23:03:57: [SM] [1] Line 1150, /home/forums/content/files/9/4/3/2/5/146949.attach::GiveInfiniteAmmo()
L 07/27/2015 - 23:03:57: [SM] [2] Line 688, /home/forums/content/files/9/4/3/2/5/146949.attach::SDKHooks_OnPreThink()
L 07/27/2015 - 23:03:58: [SM] Native "SetEntPropFloat" reported: Property "m_flChargedDamage" not found (entity 781/tf_weapon_compound_bow)

Last edited by Pala4; 07-27-2015 at 16:08.
Pala4 is offline
Reply



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 02:20.


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