AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   pev_gravity and movetype (https://forums.alliedmods.net/showthread.php?t=45808)

k007 10-12-2006 00:08

pev_gravity and movetype
 
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)

Greenberet 10-12-2006 01:59

Re: pev_gravity and movetype
 
Code:
set_pev(pev_movetype, grenade, MOVETYPE_BOUNCE)
the pev_* constants are in the first parameter of pev and set_pev

teame06 10-12-2006 02:03

Re: pev_gravity and movetype
 
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.

Greenberet 10-12-2006 07:21

Re: pev_gravity and movetype
 
ups sry you are right

i think i confused something a little bit

Hawk552 10-12-2006 15:10

Re: pev_gravity and movetype
 
Quote:

Originally Posted by k007 (Post 390160)
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.

Zenith77 10-12-2006 16:01

Re: pev_gravity and movetype
 
But don't grenades explode upon think?

Hawk552 10-12-2006 16:26

Re: pev_gravity and movetype
 
Quote:

Originally Posted by Zenith77 (Post 390372)
But don't grenades explode upon think?

I don't think so, especially when he's making his own nade.

k007 10-12-2006 17:59

Re: pev_gravity and movetype
 
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...

Zenith77 10-12-2006 18:45

Re: pev_gravity and movetype
 
Try messing with pev_speed and pev_maxspeed. I'm not sure if these will do anything though.

Hawk552 10-12-2006 18:46

Re: pev_gravity and movetype
 
Quote:

Originally Posted by Zenith77 (Post 390446)
Try messing with pev_speed and pev_maxspeed. I'm not sure if these will do anything though.

No.

Quote:

Originally Posted by k007 (Post 390424)
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.


All times are GMT -4. The time now is 04:56.

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