Gyro Question

Discuss programming in the QuakeC language.
Post Reply
gnounc
Posts: 428
Joined: Mon Apr 06, 2009 6:26 am

Gyro Question

Post by gnounc »

I am trying to learn QuakeC through gyro, and I dont quite understand either yet.

But, as practice I am trying to make a slightly different approach to a grappling hook.

I want to make the missiles from the rocket launcher PULL you through the air.
Just shoot, and start flying.
So you could shoot yourself up to a ledge.

The gyrodocs cover how to make the missile a force entity.
My question is, how do I do the same for the player (so the missile can act on the player (pull))?


found it.

in player.qc

/*
==============================================================================
PLAYER
==============================================================================
*/

void() player_run;

void() player_stand1 =[ $axstnd1, player_stand1 ]
{
add this Gyro_Object_Activate(self, 350);
add this Gyro_Object_AddChannels(self, GYRO_CHANNEL_ORGANIC);
self.weaponframe=0;
if (self.velocity_x || self.velocity_y)
Post Reply