Author Topic: grabing, and moving players?  (Read 759 times)

alright i got a few qustions. first off... can i push players? like for ex, i have a pull gun like wepion but insted of pulling the targeted player, it pushes him/her. if i can whats the scirpt/code? and then can i grab and move players? like the phys gun in gmod? if so agein
whats the scirpt/code? thank you for helping

zackin5 readys cookie jar
« Last Edit: August 13, 2007, 06:37:25 PM by zackin5 »

If you wanted it to push them, Id imagine youd give the projectile an impulse
Code: [Select]
datablock ProjectileData(spearProjectile)
{
   projectileShapeName = "./shapes/spearProjectile.dts";
   directDamage        = 50;
   directDamageType  = $DamageType::SpearDirect;
   radiusDamageType  = $DamageType::SpearRadius;
[b]   impactImpulse    = 1000;
   verticalImpulse    = 1000;[/b]
   explosion           = spearExplosion;
   particleEmitter     = spearTrailEmitter;
basicly add to impact impulse, and vertical impulse too if you want them to fly upwards.

To grab and move players, Id imagine youd have to mount it to the death vehicle, and then impulse it to other projectile explosions, which would have to explode in air, so the player would follow the bullets.
Thats just my wierd solution. Theres probably a better way.

i've now found out how to push players. and i dont know if i have to know how to grab and
move players now.... but keep giving me some help
*passes  :cookie: to rky*

to make it pull change the impule to a negative.