Raised This Month: $32 Target: $400
 8% 

sentry model weird issue (prop_physics_~)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 12-20-2017 , 11:25   sentry model weird issue (prop_physics_~)
Reply With Quote #1

video : https://youtu.be/k5s9mAqSy8E

I have a very weird issue. As you can see from video, it has weird physics.. it has no collide. i tried prop_physics_multiplayer and was not a solution too

I dont understand why it happens. it's from TF2 file itself and i tested this in CS:S, CS:GO too.

Same thing happens on those games too.

Any ideas would be appreciated.

Thank you.


Code
PHP Code:
int sentry CreateEntityByName("prop_physics_override");
        
DispatchKeyValue(sentry"model"TURRET_MODEL_PATH);
//        DispatchKeyValue(sentry, "spawnflags", "3");
        
DispatchKeyValueVector(sentry"origin"vecPointPos);
        
DispatchKeyValueVector(sentry"angles"vecUserAngle);
//        ActivateEntity(sentry);
//        AcceptEntityInput(sentry, "EnableMotion");

        
DispatchSpawn(sentry); 
__________________

Last edited by Starbish; 12-20-2017 at 11:31.
Starbish is offline
neatek
AlliedModders Donor
Join Date: Jul 2010
Location: Russia
Old 12-20-2017 , 13:17   Re: sentry model weird issue (prop_physics_~)
Reply With Quote #2

Just do not set this:
PHP Code:
DispatchKeyValueVector(sentry"angles"vecUserAngle);
DispatchKeyValueVector(sentry"origin"vecPointPos); 
Use:
PHP Code:
TeleportEntity(sentryvecPointPosNULL_VECTORNULL_VECTOR); 
after DispatchSpawn(sentry);
__________________
neatek is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-20-2017 , 14:27   Re: sentry model weird issue (prop_physics_~)
Reply With Quote #3

Quote:
Originally Posted by neatek View Post
Just do not set this:
PHP Code:
DispatchKeyValueVector(sentry"angles"vecUserAngle);
DispatchKeyValueVector(sentry"origin"vecPointPos); 
Use:
PHP Code:
TeleportEntity(sentryvecPointPosNULL_VECTORNULL_VECTOR); 
after DispatchSpawn(sentry);
That's not the issue, it's because he's spawning it as a prop_physics_override, and the sentry model doesn't have a collision box like normal physics props.
Mitchell is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 12-20-2017 , 18:49   Re: sentry model weird issue (prop_physics_~)
Reply With Quote #4

Quote:
Originally Posted by Mitchell View Post
That's not the issue, it's because he's spawning it as a prop_physics_override, and the sentry model doesn't have a collision box like normal physics props.
then how does it have a collision in tf2 original sentry? can i use this model if i add a collision box on prop_physics?
__________________
Starbish is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-20-2017 , 19:06   Re: sentry model weird issue (prop_physics_~)
Reply With Quote #5

Quote:
Originally Posted by Starbish View Post
then how does it have a collision in tf2 original sentry? can i use this model if i add a collision box on prop_physics?
It probably uses the bounding box for the collision.
Mitchell is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 12-20-2017 , 19:18   Re: sentry model weird issue (prop_physics_~)
Reply With Quote #6

Quote:
Originally Posted by Mitchell View Post
It probably uses the bounding box for the collision.
i added this right below the TeleportEntity() and nothing changed

new Float:minbounds[3] = {-200.0, -200.0, 0.0};
new Float:maxbounds[3] = {200.0, 200.0, 32.0};

SetEntPropVector(sentry, Prop_Send, "m_vecMins", minbounds);
SetEntPropVector(sentry, Prop_Send, "m_vecMaxs", maxbounds);
__________________

Last edited by Starbish; 12-20-2017 at 19:18.
Starbish is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 12-21-2017 , 00:03   Re: sentry model weird issue (prop_physics_~)
Reply With Quote #7

Try to create this model HitBox. In the physical model PhisBox doesn't work or works poorly.
Attached Images
File Type: jpg 3.jpg (24.3 KB, 113 views)
File Type: jpg 4.jpg (25.9 KB, 94 views)

Last edited by tonline_kms65; 12-21-2017 at 00:04.
tonline_kms65 is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 12-21-2017 , 00:05   Re: sentry model weird issue (prop_physics_~)
Reply With Quote #8

Quote:
Originally Posted by Starbish View Post
i added this right below the TeleportEntity() and nothing changed

new Float:minbounds[3] = {-200.0, -200.0, 0.0};
new Float:maxbounds[3] = {200.0, 200.0, 32.0};

SetEntPropVector(sentry, Prop_Send, "m_vecMins", minbounds);
SetEntPropVector(sentry, Prop_Send, "m_vecMaxs", maxbounds);

It worked in cs1.6(Pawn)
tonline_kms65 is offline
Reply


Thread Tools
Display Modes

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 10:41.


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