View Single Post
Author Message
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 01-09-2021 , 14:04   [CS:GO] Weapon goes through solid wall
Reply With Quote #1

PHP Code:

            int entity 
CreateEntityByName("func_wall_toggle");
            if (
entity != -1)
            {
                
DispatchKeyValueVector(entity"origin"zoneInfo.vecOrigin);
                
                
DispatchSpawn(entity);
                
ActivateEntity(entity);    
                
                
SetEntityModel(entity"models/error.mdl");
                
                
SetEntProp(entityProp_Send"m_nSolidType"2);
                
SetEntProp(entityProp_Send"m_fEffects"GetEntProp(entityProp_Send"m_fEffects") | EF_NODRAW); 
                
                
SetEntPropVector(entityProp_Data"m_vecMins"zoneInfo.vecMins);
                
SetEntPropVector(entityProp_Data"m_vecMaxs"zoneInfo.vecMaxs);
                
                
SDKHook(entitySDKHook_StartTouchPostSDK_RestrictedZoneTouch);
                
                
renderZones true;
            } 
Im creating solid walls like this. Players cannot go through these walls, but you can drop weapons through them. How can I make them solid to weapons as well? (I'm making a bombsite restrictor plugin, players must not drop C4 through them).

If I change func_wall_toggle to func_brush, its the same thing ...
__________________

Last edited by Ilusion9; 01-09-2021 at 14:06.
Ilusion9 is offline