Raised This Month: $51 Target: $400
 12% 

[TF2] Randomizer


Post New Thread Reply   
 
Thread Tools Display Modes
Cooltad
Veteran Member
Join Date: Apr 2008
Old 07-26-2009 , 07:18   Re: [TF2] Randomizer
Reply With Quote #21

I'd rather not post my codes like that, as I rather enjoy hosting a unique server.
However, I will give you some clues as to how to get what you want:
Try modifying the ammo amount in ongameframe, and then using a bunch of if's to decide how much ammo to give per class or weapon, and use a function to save each client's ammo clip and amount each time they fire with calciscritical.

Right now I'm redoing my server, but add it to your list sometime if you wanna check out my work and ask whatever:
68.34.30.172:27015
__________________
Please, give me some rep if you found what I posted useful. :]

Last edited by Cooltad; 07-26-2009 at 07:20.
Cooltad is offline
Sexual Harassment Panda
Veteran Member
Join Date: Dec 2008
Location: San Diego, CA
Old 07-26-2009 , 15:42   Re: [TF2] Randomizer
Reply With Quote #22

the givenameditem plugin has a version by fryen that changes ammo ammounts based on the weapon, I would also look at that.
__________________
Sexual Harassment Panda is offline
Theme97
Senior Member
Join Date: Mar 2009
Old 07-26-2009 , 16:42   Re: [TF2] Randomizer
Reply With Quote #23

The CTX files aren't there for changing the ammo on spawn, though. The plugin can do that just fine. The files raise the max ammo so that the game properly handles gaining ammo from dispensers and ammo packs. I don't think the aforementioned methods will solve this.

For example, if you're a Sniper, you won't gain ammo if you have 25+ boolets in your minigun because 25 is the Sniper's max primary ammo.
Theme97 is offline
MrSaturn
SourceMod Donor
Join Date: Jan 2009
Old 07-26-2009 , 22:12   Re: [TF2] Randomizer
Reply With Quote #24

+Request

A plugin that sets the ammo values to normal, corresponding with the weapon the player has, using the custom ctx files, but doesnt randomize. This would make the plugin more on-the-fly capable. I would definitely use it and I'm sure others would.
__________________
MrSaturn is offline
Theme97
Senior Member
Join Date: Mar 2009
Old 07-31-2009 , 18:06   Re: [TF2] Randomizer
Reply With Quote #25

Good news! 1.1 released. There are some big changes, so check the first post for more information.

The bad news? Well, I kinda need you guys to test it for me. I'd like to make sure bugs aren't introduced in 1.1 but I have quite a few things to do today so I'd like to get a quick release out.
__________________
I now have very little time to work on stuff and my main computer (which is the only one that can run TF2) is not cooperating with me, so don't expect many updates from me anytime soon.

[ALL] Karaoke
[TF2] Intel Timer | Crabmod | Randomizer | Stopwatch | Crits 4 All
Theme97 is offline
Ket
Junior Member
Join Date: Jun 2009
Old 07-31-2009 , 18:42   Re: [TF2] Randomizer
Reply With Quote #26

The flamethrower is getting really low ammo count with the new version. When I got spy with flare pistol and flamethrower the flamethrower had 16 ammo. Another player reported getting 28 ammo and he was a demo. Someone else reported getting around 78 extra ammo with the ambassador
Ket is offline
Theme97
Senior Member
Join Date: Mar 2009
Old 07-31-2009 , 18:45   Re: [TF2] Randomizer
Reply With Quote #27

Quote:
Originally Posted by Ket View Post
The flamethrower is getting really low ammo count with the new version. When I got spy with flare pistol and flamethrower the flamethrower had 16 ammo. Another player reported getting 28 ammo and he was a demo. Someone else reported getting around 78 extra ammo with the ambassador
Oh man, you must have snagged it before I attempted to ninja update.

Try the new one. The old one was replacing the primary ammo with the secondary's amount.
__________________
I now have very little time to work on stuff and my main computer (which is the only one that can run TF2) is not cooperating with me, so don't expect many updates from me anytime soon.

[ALL] Karaoke
[TF2] Intel Timer | Crabmod | Randomizer | Stopwatch | Crits 4 All
Theme97 is offline
Ket
Junior Member
Join Date: Jun 2009
Old 07-31-2009 , 19:18   Re: [TF2] Randomizer
Reply With Quote #28

Thanks it seems to be working now.
Running a server that switches between wierd custom maps with a lot of plugins and normal valve maps with randomizer every 24 hours.
99.198.110.2:27015
Ket is offline
Ket
Junior Member
Join Date: Jun 2009
Old 08-02-2009 , 08:28   Re: [TF2] Randomizer
Reply With Quote #29

Just had someone get a demoman with minigun, pistol and bottle. Only got 16 minigun ammo he said. That was after resupplying from a cabinet.

Edit: I just took a look at the error logs. 17 MB logs O_o. Almost the whole thing is filled with randomizer errors:

L 08/02/2009 - 04:42:09: [SM] Native "AcceptEntityInput" reported: Entity 1437 (1437) is not a CBaseEntity
L 08/02/2009 - 04:42:09: [SM] Displaying call stack trace for plugin "Randomizer.smx":
L 08/02/2009 - 04:42:09: [SM] [0] Line 483, /home/groups/alliedmodders/forums/files/4/9/7/5/8/46620.attach::OnGameFrame()

This one is being repeated 20+ times a second.

There is also this one at the begining

Code:
L 08/02/2009 - 04:18:23: [SM] Native "GetEdictClassname" reported: Invalid edict (-1 - -1)
L 08/02/2009 - 04:18:23: [SM] Displaying call stack trace for plugin "Randomizer.smx":
L 08/02/2009 - 04:18:23: [SM]   [0]  Line 429, /home/groups/alliedmodders/forums/files/4/9/7/5/8/46620.attach::OnGameFrame()
L 08/02/2009 - 04:18:23: [SM] Native "GetEdictClassname" reported: Invalid edict (-1 - -1)
L 08/02/2009 - 04:18:23: [SM] Displaying call stack trace for plugin "Randomizer.smx":
L 08/02/2009 - 04:18:23: [SM]   [0]  Line 429, /home/groups/alliedmodders/forums/files/4/9/7/5/8/46620.attach::OnGameFrame()
L 08/02/2009 - 04:18:23: [SM] Native "GetEdictClassname" reported: Invalid edict (-1 - -1)
L 08/02/2009 - 04:18:23: [SM] Displaying call stack trace for plugin "Randomizer.smx":
L 08/02/2009 - 04:18:23: [SM]   [0]  Line 429, /home/groups/alliedmodders/forums/files/4/9/7/5/8/46620.attach::OnGameFrame()
L 08/02/2009 - 04:18:23: [SM] Native "GetEdictClassname" reported: Invalid edict (-1 - -1)
L 08/02/2009 - 04:18:23: [SM] Displaying call stack trace for plugin "Randomizer.smx":
L 08/02/2009 - 04:18:23: [SM]   [0]  Line 429, /home/groups/alliedmodders/forums/files/4/9/7/5/8/46620.attach::OnGameFrame()
L 08/02/2009 - 04:39:25: [SM] Native "GetEdictClassname" reported: Invalid edict (1468 - 1468)
L 08/02/2009 - 04:39:25: [SM] Displaying call stack trace for plugin "Randomizer.smx":
L 08/02/2009 - 04:39:25: [SM]   [0]  Line 273, /home/groups/alliedmodders/forums/files/4/9/7/5/8/46620.attach::timer_checkplayers()

Last edited by Ket; 08-02-2009 at 14:57.
Ket is offline
Theme97
Senior Member
Join Date: Mar 2009
Old 08-03-2009 , 02:57   Re: [TF2] Randomizer
Reply With Quote #30

Damn, must be my messy handling of particle stuff with the medigun. I really should do some extra checks there, but I bet the problem is with mapchanges.

Hopefully tomorrow I'll have that fixed along with the medigun healing their feet instead of their torso. Thanks for the report and sorry for the error spam.
__________________
I now have very little time to work on stuff and my main computer (which is the only one that can run TF2) is not cooperating with me, so don't expect many updates from me anytime soon.

[ALL] Karaoke
[TF2] Intel Timer | Crabmod | Randomizer | Stopwatch | Crits 4 All
Theme97 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 04:08.


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