tank pack - adding emitters and tread marks
by Jerry Shaw · 05/08/2005 (3:44 pm) · 6 comments
Download Code File
Edit: last article was too large.
System
Linux - Gentoo 2.6.10-r5
GCC 3.3.5
TGE 1.3.1
BraveTree Tank Pack (correctly installed)
Single Player
Implementation
Based on the following resources:
- Bullet Holes
- How to get damage emitters in a Player
See tank_emitters.txt for the details.
You will need to edit tankShape.h, tankShape.cc, tankDb.cs, and tankFx.cs.
Don't forget to make backups!
Don't forget to recompile the engine and delete any existing dso files before running game !!!
Enjoy!
If someone finds bugs or errors in this code, please inform me.
Feedback is a must!
Thanks,
Jerry
Edit: last article was too large.
System
Linux - Gentoo 2.6.10-r5
GCC 3.3.5
TGE 1.3.1
BraveTree Tank Pack (correctly installed)
Single Player
Implementation
Based on the following resources:
- Bullet Holes
- How to get damage emitters in a Player
See tank_emitters.txt for the details.
You will need to edit tankShape.h, tankShape.cc, tankDb.cs, and tankFx.cs.
Don't forget to make backups!
Don't forget to recompile the engine and delete any existing dso files before running game !!!
Enjoy!
If someone finds bugs or errors in this code, please inform me.
Feedback is a must!
Thanks,
Jerry
About the author
Recent Blogs
• Plan for Jerry Shaw• Plan for Jerry Shaw
• Plan for Jerry Shaw
• Plan for Jerry Shaw
#2
You don't have permission to access /uploaded/code/7780.tank_emitters.txt on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."
That's the message I received when I tried to get the .txt file. :(
I'll try again tomorrow, as this resource is exactly what I needed.
05/09/2005 (3:28 pm)
"ForbiddenYou don't have permission to access /uploaded/code/7780.tank_emitters.txt on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."
That's the message I received when I tried to get the .txt file. :(
I'll try again tomorrow, as this resource is exactly what I needed.
#3
Edit: text file and screenshot should be working now...
05/10/2005 (10:37 am)
Sorry folks, the image and file link were working before the site change and even afterwards last night. Not sure what's going on here. I'll re-upload the image and file tonight and ask Ed to host the instructions (Thanks Ed!!)Edit: text file and screenshot should be working now...
#4
02/21/2006 (5:32 pm)
So has anyone got this resource working with TGE 1.4 and does it work in multiplayer?
#5
Set up a datablock that looks like this:
as with emitters.. haven't fooled with the tank pack yet.. but with minimal work it sould work with 1.4+...
As with anything else thats server side... you have to pass the information back to the clients and have them display it.. (which the new decal implement in 1.4 probably does.. much like explosions)
05/10/2006 (2:52 pm)
The bullet hole (aka decal stuff) is already in 1.4. Using...decals[0] = BulletDecal;
Set up a datablock that looks like this:
datablock DecalData(BulletDecal){ sizeX = 0.05; sizeY = 0.05; textureName = "~/data/shapes/myGun/textures/bullethole";};as with emitters.. haven't fooled with the tank pack yet.. but with minimal work it sould work with 1.4+...
As with anything else thats server side... you have to pass the information back to the clients and have them display it.. (which the new decal implement in 1.4 probably does.. much like explosions)
#6
it's ok in 1.42.
but
// js - decals
// also spawns tread dust
if (mVelocity.len() > 0.6 && mContact) {
applyTreadMarks(lt,rt,getTransform());
}
// js - decals
change 0.6 to 0.1(or other value)
01/21/2007 (7:30 am)
thanks !it's ok in 1.42.
but
// js - decals
// also spawns tread dust
if (mVelocity.len() > 0.6 && mContact) {
applyTreadMarks(lt,rt,getTransform());
}
// js - decals
change 0.6 to 0.1(or other value)

Associate Edward F. Maurina III
Roaming Gamer LLC
I broke the image...not Jerry. :(
EdM|EGTGE