Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Tue Mar 19, 2024 9:16 am
All times are UTC + 0
Unit Specific Debris and other cool features of voxel debris
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [1 Post] Mark the topic unread ::  View previous topic :: View next topic
Author Message
SMIFFGIG
General


Joined: 03 Mar 2003
Location: Great Britain

PostPosted: Sat Apr 19, 2003 11:30 pm    Post subject:  Unit Specific Debris and other cool features of voxel debris Reply with quote  Mark this post and the followings unread

Ok here is a simple and fairly easy way to give every voxel unit
specific debris (best used for a tanks turret and/or barrels) however i
have been taking it further and giving Harvesters and Refinaries for
example Tiberium Crystals come flying out of them

Firstly although it does not seem to be neccessary add ur debris to the
"VoxelAnimations" list for example

(i give 4tnk [Mammoth tank] as an example however default TS does not
have this unit, its just to show barrel and turret example


[VoxelAnims] -section
30=4TNKTURRET
31=4TNKBARLDEBRIS

(in this case '4TNKTURRET' is already defined in the list so dont bother
adding a new one, we will get onto that later

Then go to the 4TNK  Entry and look at the debris section which will
probably look something like this on any unit

MaxDebris=4

this is the most common input for this tag, however u dont want the tank
to have just 4 normal debris pieces, you want it to have those 4 + 1
tank barrel flying off it and 1 tank turret so change the entry to
MaxDebris=6 ;defines TOTAL maximum debris for this unit

DebrisTypes=4TNKTURRET,4TNKBARLDEBRIS ;defines the SPECIFIC debris you want this unit to have

DebrisMaximums=1,1 ;Defines the AMOUNT of specific debris types u want for this unit

So you have now defined a total of 6 maximum debris amounts for the
mammoth tank and a maximum of one of these will be the tanks barrel and maximum of one will be the tanks turret

Sadly unlike Red Alert 2 there is no 'MinDebris=' tag so there is a chance of the debris not appearing at all, which isnt such a bad thing since the turret wouldnt 100% of the time come flying off, however it still seems to appear the majority of the time


Now onto the specifics for each new debris piece so go to the Debris action of the Rules.ini just search for '[PIECE]' or something now you will see there is already an entry for '4TNKTURRET' well it is dud and seems to be a mistake of WW's. It will look like this

(TS Original)

[4TNKTURRET]
Name=Mammoth Tank Turret
ShareTurretData=yes
ShareSource=4TNK
Elasticity=0.0
MinAngularVelocity=10.0
MaxAngularVelocity=14.0
MinZVel=30.0
MaxZVel=38.0
MaxXYVel=8.0
Duration=100
ExpireAnim=TWLT036
Damage=30
DamageRadius=50
Warhead=TankOGas


(TS Fixed)
[4TNKTURRET]
Name=Mammoth Tank Turret
Image=4TNKTUR
;ShareTurretData=yes
;ShareSource=4TNK
Elasticity=0.0
MinAngularVelocity=10.0
MaxAngularVelocity=14.0
MinZVel=30.0
MaxZVel=38.0
MaxXYVel=8.0
Duration=100
ExpireAnim=TWLT036
Damage=30
DamageRadius=50
Warhead=TankOGas

As you can see I have commented out ShareTurretData and ShareSource
Strangely it works WITHOUT these tags and not with, originally it seemed westwood tried to define specific turret debris through JUST this section using those two tags but they do not work. Now when you start the game and destroy a mammoth u will see the effects and it looks cool.

There is alot more things to do with Voxel debris that is not used at all however there is no gaurentee that it will work (like the ShareSource instance etc) I have begun working with these and using them in TS Retro
I now have the Tiberium harvester and refinary for instance explode with random amounts of red/blue and mainly green Tiberium crystals come flying out of them with a specific sound (for the voxel appearing), graphics (voxel Tiberium crystal graphics which i have made blue/red/green) and graphics for when the tiberium explodes, this however is still touching on the surface of what you can do. You can define related particle systems that the debris spawns and the amount, sounds for the debris bouncing/appearing dissappearing, damage, damageradius (this could be used for other things if it works properly unlike the art.ini entry for this tag which only allows TINY values any high value is just small radius) and the warhead that it uses.

So experiment away, I have been and will be using Debris alot more now to greater effect also i have using the 'VoxelIndex' for debris made it so when the Mammoth Mk II explodes all its body parts and its body comes flying off, all these little things really do add to the game Wink

Anyway thats all for now, im experimenting with something tottaly different at the moment and if all goes well maybe writting a Tutorial for that

-SMIFFGIG

P.S. Check out basic Voxel Specific debris in action at Tiberium Sun Retro
I say basic as it is currently on version 1.1 which has Voxel specific debris however v1.2 will have the Tiberium Crystals and HMEC body parts etc (thats only what ive already added)

heres some quick screenshots I snapped up when i first added the tiberium cystal debris. If you want screenshots of most of the other debris in action go to Tiberium Studios link in my sig



tiberium debris.jpg
 Description:
 Filesize:  21.6 KB
 Viewed:  7147 Time(s)

tiberium debris.jpg




Key Words: #Tutorials #Modding #TiberianSun #Firestorm #Rules.INI #Art.INI 

_________________

Back to top
View user's profile Send private message Send e-mail Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1522s ][ Queries: 14 (0.0123s) ][ Debug on ]