Update bins

This commit is contained in:
Jackz 2023-05-26 08:03:26 -05:00
parent 07360e59e3
commit 208e01c00b
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
5 changed files with 2 additions and 12 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -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);