LucasForums

LucasForums (http://www.lucasforums.com/index.php)
-   JA Coding (http://www.lucasforums.com/forumdisplay.php?f=539)
-   -   Destroyable jetpack (http://www.lucasforums.com/showthread.php?t=204049)

Neon 05-28-2010 03:01 PM

Destroyable jetpack
 
I'm wondering if it is possible to code the jetpack so that when you hit it, it will explode like in episode 2. This means completely disable the flying abilities and doing some minor damage to the player who is wearing it.

I have never programmed in jedi academy before. But I do know the c++ language. If this is possible then I want to try this to test my skills in c++
Also, all the help to get me started is appreciated of course :)

Grtz

Kimberly 05-28-2010 04:14 PM

well i think it is possible... maybe you look at this code

w_force.c

just search for cloak...

/*
* Added by Kimmy
* Disables the victim's jetpack if we fire some lightnings at him
*
*/
if ( traceEnt->client->jetPackOn )
{// disable jetpack temporarily
Jetpack_Off(traceEnt);
traceEnt->client->jetPackToggleTime = level.time + Q_irand( 3000, 10000 );
}


If you want to expand this than strip the clients jetpack, decrease his health, play a sound and fx :P


All times are GMT -4. The time now is 03:34 AM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.