Gyro Question

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Gyro Question

Postby gnounc » Mon Apr 06, 2009 10:32 am

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)
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest