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

[CSGO]how to create a wall?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rsdtt
Senior Member
Join Date: Oct 2009
Old 11-03-2022 , 23:31   [CSGO]how to create a wall?
Reply With Quote #1

I want the wall can block player and no hit.
I try this but entity's angles cant turn.
Code:
    int iEntity = CreateEntityByName("prop_dynamic");
    if (iEntity != -1)
    {
        DispatchKeyValueVector(iEntity, "origin", origin);
        DispatchKeyValue(iEntity, "angles", "0 90 0");
    	DispatchKeyValue(iEntity, "solid", "2");
    	
    	DispatchKeyValue(iEntity, "targetname", "Wall");
    	DispatchKeyValue(iEntity, "model", "models/props/de_nuke/hr_nuke/chainlink_fence_001/chainlink_fence_gate_001_64_door.mdl");
        DispatchSpawn(iEntity);

        SetEntProp(iEntity, Prop_Send, "m_fEffects", GetEntProp(iEntity, Prop_Send, "m_fEffects") | 0x020); // EF_NODRAW 
    }
__________________
I am learning sm now

Last edited by rsdtt; 11-09-2022 at 05:59.
rsdtt is offline
boink
Member
Join Date: May 2021
Location: Australia
Old 11-04-2022 , 01:56   Re: [CSGO]how to create a wall?
Reply With Quote #2

You can use TeleportEntity() to rotate the wall, as well as to set the location.

I also personally use SetEntityModel() to set the model path
__________________
@.boink. on Discord | DM for Plugin Requests | Tip Jar
boink is offline
rsdtt
Senior Member
Join Date: Oct 2009
Old 11-04-2022 , 02:04   Re: [CSGO]how to create a wall?
Reply With Quote #3

Quote:
Originally Posted by boink View Post
You can use TeleportEntity() to rotate the wall, as well as to set the location.

I also personally use SetEntityModel() to set the model path
I have try TeleportEntity, it can teleport to origin, but angles cant change when solid set 2.
if solid set 6, angles can set but it will block the bullet
__________________
I am learning sm now
rsdtt is offline
Reply



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 00:16.


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