View Single Post
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-11-2017 , 20:17   Re: [TF2/CSGO]Piggyback ride redux 1.3
Reply With Quote #21

Quote:
Originally Posted by Jillchang View Post
Tony,
The newest version makes it so it keeps kicking off the piggyback player due to "stuck" concerns, and there is nothing for the player to be stuck on.
Can you add a cvar to turn that off?

This is TF2.
You can fix it yourself quite easily if you have a proper compile folder set up.

See my prior post, specifically;

Quote:
Originally Posted by abrandnewday View Post
Ok so the plugin didn't work properly on TF2. It wouldn't let you ride and would repeatedly just un-piggy you.

Commenting out this bit of code in OnPreThink(<-- Open the piggyback.sp file in your fave notepad program, CTRL + F, find "OnPreThink". Look for the code below and just add the "//" behind those specific lines) fixed that issue and the thing works properly now;

PHP Code:
Handle trace TR_TraceHullFilterEx(vOriginvPOriginminmaxMASK_PLAYERSOLIDTraceRayNoPlayersclient);
if(
TR_DidHit(trace)) //|| (GetVectorDistance(vOrigin, vPOrigin) >= 2000.0)
{
        
RemovePiggy(client);
        
PrintToChat(client,"you are dropped to prevent you get stucked");
        
CloseHandle(trace);


Last edited by 404UserNotFound; 01-11-2017 at 23:52. Reason: whoops wrong code
404UserNotFound is offline