Quote:
Originally Posted by Jillchang
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
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(vOrigin, vPOrigin, min, max, MASK_PLAYERSOLID, TraceRayNoPlayers, client); if(TR_DidHit(trace)) //|| (GetVectorDistance(vOrigin, vPOrigin) >= 2000.0) { RemovePiggy(client); PrintToChat(client,"you are dropped to prevent you get stucked"); CloseHandle(trace); }
|