Raised This Month: $ Target: $400
 0% 

Entity not dropping to floor


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-04-2011 , 22:30   Entity not dropping to floor
Reply With Quote #1

In my plugin, when a player dies, the bag does not drop to the ground. It stays suspended in the air, and I've tried changing the movetype to MOVETYPE_NOCLIP, and it still does not work.

I want to leave the aiment there because it allows the bag to follow the player without following behind the player. It stays on top of the player directly at all times.
Attached Files
File Type: sma Get Plugin or Get Source (BagTag.sma - 625 views - 16.4 KB)
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-05-2011 , 05:51   Re: Entity not dropping to floor
Reply With Quote #2

MOVETYPE_TOSS has gravity, so it should fall.
__________________
Hunter-Digital is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-05-2011 , 16:59   Re: Entity not dropping to floor
Reply With Quote #3

Quote:
Originally Posted by Hunter-Digital View Post
MOVETYPE_TOSS has gravity, so it should fall.
It doesn't fall when I die unfortunately. I have no idea why it's not.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-05-2011 , 17:19   Re: Entity not dropping to floor
Reply With Quote #4

Try setting gravity to 1.0 and velocity to Float:{0.0, 0.0, -50.0} along with that MOVETYPE_TOSS.
__________________
Hunter-Digital is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-05-2011 , 17:42   Re: Entity not dropping to floor
Reply With Quote #5

About code, why do you set bag origin each prethink if you have set it's property aiment to player index ?
About the thread, have you tried same thig with different models ? You may simply have to alter model origin offsets with som model editor like jedi model viewer.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-05-2011 , 17:54   Re: Entity not dropping to floor
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
About code, why do you set bag origin each prethink if you have set it's property aiment to player index ?
About the thread, have you tried same thig with different models ? You may simply have to alter model origin offsets with som model editor like jedi model viewer.
If I remember correctly, when I tried aiment without setting the origin, the bag would be stuck inside of the player itself. When setting the origin, I set it above the players head so that it is easily visible, and doesn't look retarded altogether

I actually have not tried with different models. But I know that this model is off-centered for sure, because when trying to rotate it, it rotates in a circle, rather than in place.

I'm not sure how to alter model origin offsets, but I do have Jed's Model Viewer.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
avril-lavigne
Banned
Join Date: Apr 2009
Old 10-05-2011 , 19:23   Re: Entity not dropping to floor
Reply With Quote #7

drop_to_floor?
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-05-2011 , 19:54   Re: Entity not dropping to floor
Reply With Quote #8

Quote:
Originally Posted by avril-lavigne View Post
drop_to_floor?
They essentially do the same thing. And there's no point of including engine just for that function when you can do the same with fakemeta, which is already included.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
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 19:35.


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