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

[TF2/CSGO]Piggyback ride redux 1.5


Post New Thread Reply   
 
Thread Tools Display Modes
TonyBaretta
Senior Member
Join Date: Mar 2014
Location: nope.avi
Old 02-27-2017 , 05:38   Re: [TF2/CSGO]Piggyback ride redux 1.5
Reply With Quote #41

1.5
added client pref menu

"pb_enabledDefault" "1" "Default piggybacking setting "
"pb_multi_piggy" "0" "Allow infinite victims (only 1 if disabled)"
"pb_nopiggyred" "0" "Disable piggybacking for red team"
"pb_nopiggyblu" "0" "Disable piggybacking for blu team"
and minor fixes
__________________
TonyBaretta is offline
xF . Tick Tock Man
Member
Join Date: Feb 2015
Old 03-06-2017 , 22:40   Re: [TF2/CSGO]Piggyback ride redux 1.5
Reply With Quote #42

Can't seem to get this to work in TF2.

Menu comes up fine, getting nothing in the error logs...

Just right clicking with melee does nothing.

Tried toggling each of the cvars and retested - getting literally nothing..

Any ideas?
xF . Tick Tock Man is offline
TonyBaretta
Senior Member
Join Date: Mar 2014
Location: nope.avi
Old 03-07-2017 , 02:58   Re: [TF2/CSGO]Piggyback ride redux 1.5
Reply With Quote #43

it do nothing cause you have loaded it without restart the server or changemap.
__________________
TonyBaretta is offline
SirBlockles
Junior Member
Join Date: Mar 2017
Location: /home/muddy
Old 03-10-2017 , 23:00   Re: [TF2/CSGO]Piggyback ride redux 1.5
Reply With Quote #44

It's not working for me in TF2. It keeps saying that piggybacking is disabled until the start of the next round, despite forcing a round end and starting a new round, as well as changing map. I also doublechecked my client settings and convars, is there something I missed?

Last edited by SirBlockles; 03-11-2017 at 00:34.
SirBlockles is offline
Send a message via Skype™ to SirBlockles
TonyBaretta
Senior Member
Join Date: Mar 2014
Location: nope.avi
Old 03-11-2017 , 03:32   Re: [TF2/CSGO]Piggyback ride redux 1.5
Reply With Quote #45

fixed
__________________
TonyBaretta is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 03-11-2017 , 14:18   Re: [TF2/CSGO]Piggyback ride redux 1.5
Reply With Quote #46

Quote:
Originally Posted by TonyBaretta View Post
it do nothing cause you have loaded it without restart the server or changemap.
If you move any of the OnMapStart shit (i.e. client variables, precaching/adding files to downloads stays in OnMapStart) into OnPluginStart (or even add a copy to OnPluginStart), players won't have to restart the server or changemap for things to work. SourceMod plugin creation 101.

Last edited by 404UserNotFound; 03-11-2017 at 14:18.
404UserNotFound is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 04-10-2017 , 16:22   Re: [TF2/CSGO]Piggyback ride redux 1.5
Reply With Quote #47

I was going to ask why you had AcceptEntityInput(entity, "SetParent", -1, -1, 0); in RemovePiggy, but then I noticed I was looking at an older (modified-by-me) copy of the plugin. So I checked the latest copy and I see you removed that SetParent bit.

You forgot something though:

PHP Code:
public void Event_Roundstart(Event event,const char[] name,bool dontBroadcast)
{
    if (
pb_enable.BoolValue){
        
enabled true;
        for (
int i 1<= MaxClientsi++) {
            if (
g_piggy[i] == i){ 
                
AcceptEntityInput(i"ClearParent"); // <-- This
                
TF2_RespawnPlayer(i);
                
g_piggy[i] = -1;
                
g_piggy_victim[i] = -1;
            }
        }
    }

Looking at my older copy, I see it used TeleportEntity to piggyback the player, so I was confused as to why it was even running SetParent in the RemovePiggy function at all. I would definitely do a runthrough of the plugin and make sure everything is kosher and you don't have any unnecessary things running.
404UserNotFound 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 10:05.


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