mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2026-04-11 04:30:04 -05:00
15 lines
No EOL
351 B
SourcePawn
15 lines
No EOL
351 B
SourcePawn
void RockDropEntity(int entity, float heightOffset = 0.0) {
|
|
float pos[3], dropPos[3];
|
|
if(entity <= MaxClients) {
|
|
GetClientEyePosition(entity, pos);
|
|
} else {
|
|
GetEntPropVector(entity, Prop_Send, "m_vecOrigin", pos);
|
|
pos[2] += 10.0;
|
|
}
|
|
pos[2] += heightOffset;
|
|
|
|
dropPos = pos;
|
|
float ang[3];
|
|
ang[0] = 90.0;
|
|
L4D_TankRockPrj(0, dropPos, ang);
|
|
} |