[CS:GO] Spawned prop push away player
I spawn prop with this code:
Code:
SpawnProp(iClient, iPropID, Float:fOrigin[3], Float:fAngles[3])If I change m_CollisionGroup from 0 to 50 (I tried it all), prop become unsolid in all case, except 17. Is here any way to make prop solid and remove push away force? Btw, this code without SetEntProp(iEntity, Prop_Data, "m_CollisionGroup", 17); spawn prop without push away in CS:S, but in CS:GO without this line prop spawned unsolid. P.S. Sorry for bad language. Problem Solved: 1. SetEntPropEnt(iEntity, Prop_Send, "m_hOwnerEntity", iClient); - I don't know why, but this line ruined all code before. I replace that with: SetEntPropEnt(iEntity, Prop_Send, "m_hEffectEntity", iClient);. 2. SetEntProp(iEntity, Prop_Send, "m_usSolidFlags", 152); - don't know what is it, but it works SetEntProp(iEntity, Prop_Send, "m_CollisionGroup", 8 ); - collusion group like a player 3. Full Code: Code:
SpawnProp(iClient, iPropID, Float:fOrigin[3], Float:fAngles[3]) |
Re: [CS:GO] Spawned prop push away player
up... sourcemod 1.5 released, but problem still not solved...
|
Re: [CS:GO] Spawned prop push away player
Code:
COLLISION_GROUP_NONE = 0, |
Re: [CS:GO] Spawned prop push away player
Try to enable/disable collisions for ents:
Code:
bool:CreateEntity(client, String:mdlMine[]) |
Re: [CS:GO] Spawned prop push away player
|
Re: [CS:GO] Spawned prop push away player
Enable/disable collisions not working, and plugin not working too.
Only one group give different result - COLLISION_GROUP_PUSHAWAY, but I don't need to having pushaway force, and prop are unsolid - I can jump into it, and inside of prop are empty space, and I can see through it. Screenshots: http://s017.radikal.ru/i402/1309/28/429a1347d788t.jpg http://s018.radikal.ru/i502/1309/74/529ab51c00e1t.jpg |
Re: [CS:GO] Spawned prop push away player
I think it might be because you're setting "Solid" to 6. Looking in entities.inc you find this enum:
PHP Code:
|
Re: [CS:GO] Spawned prop push away player
i recommand you to try to remove the code that changes collisiongroup and spawn them as normal prop_physics
|
Re: [CS:GO] Spawned prop push away player
yes, removing the code that changes solid type will be good as bl4nk said.
|
Re: [CS:GO] Spawned prop push away player
Removing code that changes solid type won't helped, same result at removing code that changing collusiongroup; and spawning like prop_physics_override.
Clear prop_physics I can't spawn, because I don't know, how. I try to create, then dipatch spawn, teleport entity and setting model, but I see none. It case prop_physics_override this works. But in all checked cases spawned props are empty and unsolid. |
| All times are GMT -4. The time now is 13:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.