feat(GravityGun): Entities are transparent while held

This commit is contained in:
Yimura 2021-01-22 02:07:44 +01:00
parent ce695e60e3
commit cd9a9bf147
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -94,11 +94,13 @@ namespace big
velocity.z = location.z + (dist * sin(pitch)) - other.z;
ENTITY::SET_ENTITY_VELOCITY(entity, velocity.x * (float)multiplier, velocity.y * (float)multiplier, velocity.z * (float)multiplier);
ENTITY::SET_ENTITY_ALPHA(entity, 105, 0);
}
}
else if (entity != 0)
{
ENTITY::SET_ENTITY_COLLISION(entity, true, true);
ENTITY::SET_ENTITY_ALPHA(entity, 255, 0);
entity = 0;