Raised This Month: $51 Target: $400
 12% 

[CS:GO] Weapon goes through solid wall


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode