Raised This Month: $ Target: $400
 0% 

pev_gravity and movetype


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-12-2006 , 00:08   pev_gravity and movetype
Reply With Quote #1

ok so im setting my grenade ent it own gravity but i don't know if this is problem or i did something wrong or something but when the gravity is low the nade moves slow and doesn't stay on the ground(thats good thats what i wanted) but when the gravity is high it moves faster but the grenade still doesn't go go down to the ground it stay's up in the air not stays up just keep moving in the air...ok and i want to set my nade movetype to bounce i want to always be boncing with no stop just bouncing i tried this but it doesn't work..
Code:
set_pev(grenade, pev_movetype, MOVETYPE_BOUNCE)
k007 is offline
Send a message via MSN to k007
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 10-12-2006 , 01:59   Re: pev_gravity and movetype
Reply With Quote #2

Code:
set_pev(pev_movetype, grenade, MOVETYPE_BOUNCE)
the pev_* constants are in the first parameter of pev and set_pev
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-12-2006 , 02:03   Re: pev_gravity and movetype
Reply With Quote #3

Not from what this says http://www.amxmodx.org/funcwiki.php?..._pev&go=search and what I been using since I started using fakemeta. pev_* constants are the secondary parameter.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 10-12-2006 , 07:21   Re: pev_gravity and movetype
Reply With Quote #4

ups sry you are right

i think i confused something a little bit
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-12-2006 , 15:10   Re: pev_gravity and movetype
Reply With Quote #5

Quote:
Originally Posted by k007 View Post
ok so im setting my grenade ent it own gravity but i don't know if this is problem or i did something wrong or something but when the gravity is low the nade moves slow and doesn't stay on the ground(thats good thats what i wanted) but when the gravity is high it moves faster but the grenade still doesn't go go down to the ground it stay's up in the air not stays up just keep moving in the air...ok and i want to set my nade movetype to bounce i want to always be boncing with no stop just bouncing i tried this but it doesn't work.. Code:
set_pev(grenade, pev_movetype, MOVETYPE_BOUNCE)
You have to manually call it to think and calculate it.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-12-2006 , 16:01   Re: pev_gravity and movetype
Reply With Quote #6

But don't grenades explode upon think?
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-12-2006 , 16:26   Re: pev_gravity and movetype
Reply With Quote #7

Quote:
Originally Posted by Zenith77 View Post
But don't grenades explode upon think?
I don't think so, especially when he's making his own nade.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-12-2006 , 17:59   Re: pev_gravity and movetype
Reply With Quote #8

lol i should said more..im using the grenadeindex from grenade_throw forward from csx could u guys show me how to make it bounce? and what wrong with the gravity or is it normal...
k007 is offline
Send a message via MSN to k007
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-12-2006 , 18:45   Re: pev_gravity and movetype
Reply With Quote #9

Try messing with pev_speed and pev_maxspeed. I'm not sure if these will do anything though.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-12-2006 , 18:46   Re: pev_gravity and movetype
Reply With Quote #10

Quote:
Originally Posted by Zenith77 View Post
Try messing with pev_speed and pev_maxspeed. I'm not sure if these will do anything though.
No.

Quote:
Originally Posted by k007 View Post
lol i should said more..im using the grenadeindex from grenade_throw forward from csx could u guys show me how to make it bounce? and what wrong with the gravity or is it normal...
You have to set its velocity to point toward something solid, then it should bounce off when it touches that object/world.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 04:56.


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