AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Unlimited Sandvich (https://forums.alliedmods.net/showthread.php?t=135419)

noodleboy347 08-15-2010 21:57

[TF2] Unlimited Sandvich
 
1 Attachment(s)
Unlimited Sandvich
"Revival of the Picnics"

Description
This plugin brings back the old Heavy picnics by giving players their Sandvich back after consuming it.

Cvars
  • sm_sandvich_enable - Enable/disable the plugin
  • sm_sandvich_version - I think you know what this is

Updates
  • Version 1.1 - [8/16/10]
    -Switched to a better method of restoring the sandvich
  • Version 1.0 - [8/15/10]
    -Initial release

jouva 08-15-2010 22:12

Re: [TF2] Unlimited Sandvich
 
My only concern is somebody being shot after they eat it. e.g. FaN right as the heavy is finishing eating the sandvich. Will this cause problems?

noodleboy347 08-16-2010 02:44

Re: [TF2] Unlimited Sandvich
 
Quote:

Originally Posted by jouva (Post 1272188)
My only concern is somebody being shot after they eat it. e.g. FaN right as the heavy is finishing eating the sandvich. Will this cause problems?

Probably

Drixevel 08-16-2010 03:51

Re: [TF2] Unlimited Sandvich
 
Surly there has to be a better way to do this, I'm no programmer of plugins but i'm pretty sure if you can make an unlimited ammo mod or a mod to regenerate metal, there has to be another way to do this. Then again, i don't know.

Drixevel 08-16-2010 03:51

Re: [TF2] Unlimited Sandvich
 
Thanks for the contribution, hit reply before i typed it...

sejin513 08-16-2010 05:25

Re: [TF2] Unlimited Sandvich
 
first request!

for admins only cvar ;)

FlaminSarge 08-17-2010 01:06

Re: [TF2] Unlimited Sandvich
 
Is it possible to force players to switch to the melee weapon (similar to use tf_weapon_fists) right before the taunt ends, then forceswitch back to the sandwich right after the taunt ends? I know that using "use tf_weapon_fists" near the end of the nomming allows people to instantly eat again, that'd be a much more failsafe method.

Regardless, awesome fix!

noodleboy347 08-17-2010 03:36

Re: [TF2] Unlimited Sandvich
 
  • Version 1.1 - [8/16/10]
    -Switched to a better method of restoring the sandvich

FlaminSarge 08-18-2010 23:39

Re: [TF2] Unlimited Sandvich
 
Awesome, you put in my suggestion! Thanks noodle!

lionheart1066 08-20-2010 07:34

Re: [TF2] Unlimited Sandvich
 
Thanks so much for doing this. Finally I can eat without loosing my sandvich.

eco3576 08-20-2010 13:34

Re: [TF2] Unlimited Sandvich
 
After about three times or so the sandvich goes away and I cant get it back though? Bug? glitch?

FlaminSarge 08-23-2010 00:36

Re: [TF2] Unlimited Sandvich
 
1 Attachment(s)
Hey noodle try this version, it autoswitches to fists earlier and then switches back to sandvich after the taunt is over. It also prevents RCON from typing "taunt" to make an error.

This version also makes sure that people don't spam the taunt key and make it switch between sandvich and fists very quickly.

One bug, if you taunt with the fists but quickswitch to the sandvich, you lose the sandvich. This may be built into TF2.

FoxMulder 08-23-2010 22:28

Re: [TF2] Unlimited Sandvich
 
Getting spammed with this error

Code:

L 08/23/2010 - 15:04:33: [SM]  [0]  Line 49, C:\TF2Server\orangebox\tf\addons\sourcemod\scripting\sandviches.sp::OnPlayerRunCmd()
L 08/23/2010 - 15:04:33: [SM] Native "GetEdictClassname" reported: Invalid edict (-1 - -1)


FlaminSarge 08-25-2010 02:01

Re: [TF2] Unlimited Sandvich
 
FoxMulder, my version or noodleboy's version?
I'll check if my version does that, but I didn't change any "GetEdictClassname" lines.

Oh, that's noodleboy's version (it appears from the .sp directory). I don't know what the error means >.<

noodleboy347 08-25-2010 05:13

Re: [TF2] Unlimited Sandvich
 
Quote:

Originally Posted by FlaminSarge (Post 1281141)
FoxMulder, my version or noodleboy's version?
I'll check if my version does that, but I didn't change any "GetEdictClassname" lines.

Oh, that's noodleboy's version (it appears from the .sp directory). I don't know what the error means >.<

Code:

C:\TF2Server\orangebox\tf\addons\sourcemod\scripting\sandviches.sp::OnPlayerRunCmd()
Not mine

FlaminSarge 08-25-2010 10:22

Re: [TF2] Unlimited Sandvich
 
Hm... Foxmulder, did you compile yourself? The compile directory seems to be different from both mine and noodle's.

FlaminSarge 09-15-2010 21:45

Re: [TF2] Unlimited Sandvich
 
Ah jeez, now I'm getting Foxmulder's error too.


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

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