From cd9a9bf147d326debf80db374c9fbb46190a5600 Mon Sep 17 00:00:00 2001 From: Yimura Date: Fri, 22 Jan 2021 02:07:44 +0100 Subject: [PATCH] feat(GravityGun): Entities are transparent while held --- BigBaseV2/src/features/looped/custom_guns/gravity_gun.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BigBaseV2/src/features/looped/custom_guns/gravity_gun.cpp b/BigBaseV2/src/features/looped/custom_guns/gravity_gun.cpp index 6ccd276a..2a22afa3 100644 --- a/BigBaseV2/src/features/looped/custom_guns/gravity_gun.cpp +++ b/BigBaseV2/src/features/looped/custom_guns/gravity_gun.cpp @@ -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;