Get jetting!
by Sam Guffey · in Torque Game Engine · 05/20/2003 (3:41 pm) · 55 replies
Its been so long since I've looked at what is available in resources that I'm not to sure anyone has added a jet pack to the game, however I'll go ahead and post mine just in case.
The ".cs" file within the zip is the explanation on how to add it to your engine and scripts. You can go to the link below to grab it. It was created from the March 8th 2003 head though I'm sure much hasnt changed from that version to now.
Have fun.
-Liquid-
EDIT
05/15/05
There is no longer a .cs file, it has been converted to htm and placed on the web..
File available here
The ".cs" file within the zip is the explanation on how to add it to your engine and scripts. You can go to the link below to grab it. It was created from the March 8th 2003 head though I'm sure much hasnt changed from that version to now.
Have fun.
-Liquid-
EDIT
05/15/05
There is no longer a .cs file, it has been converted to htm and placed on the web..
File available here
About the author
#22
Sam
06/20/2004 (5:09 am)
I have uploaded the file again. You can find the link in the initial post.Sam
#23
- Jordan
Torque 1.3.0
10/21/2004
10/21/2004 (2:40 am)
Absolutely awesome... I had no problems getting this great feature to work TGE 1.3, and it works beautifully.- Jordan
Torque 1.3.0
10/21/2004
#24
Thanks,
Jordan
10/21/2004 (5:16 pm)
Sam, you mentioned in a previous post about updating this great resource, are you considering putting emitters?Thanks,
Jordan
#25
Trying to copy the player.cc and player.h is absolutely not the right way of going about this. Just follow the instructions in the file called Player.cs in the zip file.
03/17/2005 (2:12 am)
I just installed this into my version of 1.3 and it worked perfectly.Trying to copy the player.cc and player.h is absolutely not the right way of going about this. Just follow the instructions in the file called Player.cs in the zip file.
#26
05/10/2005 (4:02 pm)
Can this get posted again?
#27
05/10/2005 (6:00 pm)
I'd love to see it posted again as well. Exactly what I'm lookin for.
#28
05/12/2005 (3:59 pm)
The site this was posted on got canned. I'll do an update and get this listed on the resources section.
#29
05/12/2005 (4:37 pm)
Thanks very much Sam!
#30
05/12/2005 (6:20 pm)
Aighty, got it all going no prob on TGE 1.3 and with particle emitters. I just dont have a place to put it right now. Gimme a day to get it hosted or placed in the resource section.
#31
05/14/2005 (12:36 pm)
Any luck Sam?
#32
05/14/2005 (9:37 pm)
Just remembered I have web access through my isp. I posted it there for now.. Jet Pack Code
#33
05/15/2005 (4:14 am)
Thank you so much Sam. This is excellent!
#34
I am, however having an issue with the particles. Being a newbie programmer, it might be something I overlooked. I am using VS2003 and am getting jetEmitter and jetEmitterID as undeclared indentifiers. Aren't these delcared in PlayerData::PlayerData?
Thanks for the info
07/20/2005 (3:12 pm)
@ Sam, I got this implimented with little issues. great resource!! :)I am, however having an issue with the particles. Being a newbie programmer, it might be something I overlooked. I am using VS2003 and am getting jetEmitter and jetEmitterID as undeclared indentifiers. Aren't these delcared in PlayerData::PlayerData?
Thanks for the info
#35
07/20/2005 (4:11 pm)
Fail66, yes they should be. Put em in a public section. I'll make sure they are updated on the resource. Thanks for pointing it out.ParticleEmitterData * jetEmitter; S32 jetEmitterID;Put em below...
S32 dustID;
#36
Any ideas, why it crashes using the sound?
Thanks
EDIT: Also could you add particles when you take off? Like in T2 where the jetpack would make particles off the ground.
07/31/2005 (8:22 am)
For some reason the game is crashing for I use the jetpack. So I did some toubleshooting found that if I took out the sound for the jetpack that the game did crash when I used the jetpack. Any ideas, why it crashes using the sound?
Thanks
EDIT: Also could you add particles when you take off? Like in T2 where the jetpack would make particles off the ground.
#37
The first is i cant get the jetpack sound to play, i remove the // in player.cs and add a sound datablock (that i've tested) called playerJetSound and i cant hear it.
The second is that while jetting, if i "impact" on the ground, when i jet again, i have an emitter to my right too. So as i rotate this rotates too, its very strange! I was wondering if anyone else had the same problem?
02/22/2006 (11:24 am)
Well so far this has worked pretty nice except for two bugs.The first is i cant get the jetpack sound to play, i remove the // in player.cs and add a sound datablock (that i've tested) called playerJetSound and i cant hear it.
The second is that while jetting, if i "impact" on the ground, when i jet again, i have an emitter to my right too. So as i rotate this rotates too, its very strange! I was wondering if anyone else had the same problem?
#38
It looks like you've borked your modification to the player.cc file somewhere. You probably have some unmatched parenthesis somewhere just before line 1662, but without seeing the whole section of code, I can't tell for sure where your errors start. You might just want to roll it back and try again.
11/29/2006 (12:37 pm)
@JamieIt looks like you've borked your modification to the player.cc file somewhere. You probably have some unmatched parenthesis somewhere just before line 1662, but without seeing the whole section of code, I can't tell for sure where your errors start. You might just want to roll it back and try again.
#39
11/30/2006 (8:28 pm)
I've just implemented this and it didn't work. Has anybody had any problems with it in torque 1.5 by any chance?
#40
12/01/2006 (4:53 am)
After re-looking over what I implemented, I noticed a slight difference from my code and the code Sam instructed. I couldn't find the "Player::unpackData" function anywhere in the code, but I did find a "PlayerData::unpackData" and made the additions there. Could that be my problem?
Torque Owner Bruno Grieco
HTH