Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma semicolon 1
- #pragma newdecls required
- #include <sourcemod>
- #include <sdktools>
- Handle sdkActivatePipe;
- public Plugin myinfo =
- {
- name = "EXPAW2-0",
- author = "BHaType(aka Flaco Bey)",
- description = "Hehe boi",
- version = "0.0",
- url = "https://steamcommunity.com/id/lifehax/"
- }
- public void OnPluginStart()
- {
- Handle hGameConf = LoadGameConfigFile("CreatePipeBomb");
- StartPrepSDKCall(SDKCall_Static);
- if( PrepSDKCall_SetFromConf(hGameConf, SDKConf_Signature, "CPipe_Create") == false )
- SetFailState("Could not load the \"CPipe_Create\" gamedata signature.");
- PrepSDKCall_AddParameter(SDKType_Vector, SDKPass_ByRef);
- PrepSDKCall_AddParameter(SDKType_Vector, SDKPass_ByRef);
- PrepSDKCall_AddParameter(SDKType_Vector, SDKPass_ByRef);
- PrepSDKCall_AddParameter(SDKType_Vector, SDKPass_ByRef);
- PrepSDKCall_AddParameter(SDKType_CBasePlayer, SDKPass_Pointer);
- PrepSDKCall_SetReturnInfo(SDKType_CBaseEntity, SDKPass_Pointer);
- sdkActivatePipe = EndPrepSDKCall();
- RegConsoleCmd("sm_vomitjar", pipe);
- }
- public Action pipe(int client, int args)
- {
- if( !client ) return Plugin_Handled;
- float vPos[3], vAng[3];
- GetClientAbsOrigin(client, vPos);
- GetEntPropVector(client, Prop_Data, "m_vecVelocity", vAng);
- vPos[2] -= 84;
- vAng[0] += 100;
- vAng[1] += 100;
- vAng[2] += 800;
- int entity = SDKCall(sdkActivatePipe, vPos, vAng, vAng, vAng, client);
- TeleportEntity(entity, vPos, view_as<float>({0.0, 0.0, 0.0 }), vAng);
- return Plugin_Handled;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement