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

[CS:GO] Entity with gravity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Grzyboo
Junior Member
Join Date: Apr 2011
Old 04-24-2019 , 08:23   [CS:GO] Entity with gravity
Reply With Quote #1

Hey, I want to create an entity with custom model and I need it to be affected by gravity. (bounce on ground impact and vertical velocity change over time).

I've tried prop_dynamic, doesn't seem to work.
I've tried decoy_projectile as a parent entity, but the bounce is weird and emits decoy sound every time it touches something.
Grzyboo is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-24-2019 , 10:06   Re: [CS:GO] Entity with gravity
Reply With Quote #2

I don't exactly understand the science of entities but perhaps you should try https://developer.valvesoftware.com/...namic_override

Which may be related to prop_physics in some gravity way

Otherwise prop_physics should do the trick as it even has an "AcceptEntityInput" for "EnableMotion"

https://developer.valvesoftware.com/wiki/Prop_physics

Check the Move type enum and the function to decide the movetype you believe resembles grenades best.

https://sm.alliedmods.net/new-api/en...EntityMoveType
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 04-24-2019 at 10:18.
eyal282 is offline
impossible_cc
Senior Member
Join Date: Sep 2018
Location: Ukraine
Old 04-24-2019 , 10:08   Re: [CS:GO] Entity with gravity
Reply With Quote #3

As I know (I'm not sure), you cannot set velocity for prop entities. _projectile entities work with velocity. Try hegrenade_projectile or smokegrenade_projectile instead of decoy_projectile.
__________________

Last edited by impossible_cc; 04-24-2019 at 10:08.
impossible_cc is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-24-2019 , 10:18   Re: [CS:GO] Entity with gravity
Reply With Quote #4

Quote:
Originally Posted by impossible_cc View Post
As I know (I'm not sure), you cannot set velocity for prop entities. _projectile entities work with velocity. Try hegrenade_projectile or smokegrenade_projectile instead of decoy_projectile.
Bad idea as the bounce sounds will still be heard.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 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 12:54.


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