mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 16:33:21 +00:00
Update bins
This commit is contained in:
parent
07360e59e3
commit
208e01c00b
5 changed files with 2 additions and 12 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -390,24 +390,14 @@ stock void ExplodeProjectile(int entity, bool smoke = true) {
|
|||
SetEntProp(entity, Prop_Data, "m_nNextThinkTick", 1); //for smoke
|
||||
}
|
||||
|
||||
stock bool IsAreaClear(const float pos[3], const float ang[3]) {
|
||||
bool SpawnCarOnPlayer(int target) {
|
||||
float min[3] = { -30.0, -30.0, -2.0};
|
||||
float max[3] = { 30.0, 30.0, 50.0 };
|
||||
|
||||
// DebugTraceHull(pos, pos, min, max);
|
||||
TR_TraceHullFilter(pos, pos, min, max, MASK_SOLID, Filter_Solid);
|
||||
if(TR_DidHit()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SpawnCarOnPlayer(int target) {
|
||||
float pos[3];
|
||||
float ang[3];
|
||||
GetClientEyePosition(target, pos);
|
||||
GetClientEyeAngles(target, ang);
|
||||
if(IsAreaClear(pos, ang)) {
|
||||
if(IsAreaClear(pos, ang, min, max)) {
|
||||
pos[2] += 40.0;
|
||||
int id = CreateProp("prop_physics", MODEL_CAR, pos, ang);
|
||||
CreateTimer(4.0, Timer_Delete, id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue