|
~lick~
|
08-20-2014
, 08:38
Re: [CS:GO]Trigger_Push Fix
|
#9
|
Why not something like this:
Spoiler
Code:
#pragma semicolon 1
#include <sdktools>
#define PLUGIN_VERSION "1.1.0"
public Plugin:myinfo =
{
name = "Trigger_Push Fix",
author = "iEx, Mitch",
description = "Fix bug with trigger_push at touch",
version = PLUGIN_VERSION,
url = "https://forums.alliedmods.net/showthread.php?t=246423"
};
public OnPluginStart()
{
HookEntityOutput("trigger_push","OnStartTouch",OnStartTouch);
}
public OnStartTouch(const String:output[], caller, activator, Float:delay)
{
if(!(1<=activator<= MaxClients ) || (caller == -1) || (!IsClientInGame(activator)) || !IsPlayerAlive(activator))
return;
decl Float:Pushfix[3];
GetClientAbsOrigin(activator, Pushfix);
Pushfix[2] += 1.0;
TeleportEntity(activator, Pushfix, NULL_VECTOR, NULL_VECTOR);
return;
}
|
|
|
|