Special Collisions
Last Update: 24/03/2024 17:44:15
Author: TT
Loading...
# Special Collisions
Tiberian Technologies Scripts 4.0 adds new collision options to the game. These can be used to allow certain units to be blocked by an
object, but not others. In this tutorial, we will show you how to use them.
## Types of Collisions
TT has 24 collision settings for you to choose from.
Note that the names for the collisions are just that: Names. You do not have to apply a C4 collision to a C4 model. You could apply "C4"
to an air unit. It's just a way to identify them without using "Collision Number 23".
Here is a reference chart to familiarize you with them:
![Collision Reference Chart](/img/docs/Collision_group_reference_dark.png "Collision Reference Chart")
## Adding Collisions to a Map
You cannot add the TT collisions to a map from 3ds max or RenX. You need to modify them in a different way.
You will need to have your boundaries in a separate w3d file from the rest of your map. Make sure Physical in the collisions section
is checked. Now then, you will need to put this w3d file in level edit as a tile. Make a temp containing your w3d file.
TT adds two new options to Level Edit. They are "Collision Group" and "Visibility Mode". Use these to apply your collisions to the temp.
Then, add it to the map, put the location as 0, 0, 0, and you are done.
## Adding Collisions to Units
Adding collisions to units is a little harder. You will need to use "SH_CustomCollisionGroup" to apply it. In this script, unfortunately,
they are not names, but numbers. Here is the Collisions and how they correlate with the Numbers:
- Default = 0
- Uncollideable = 1
- Terrain Only = 2
- Bullet = 3
- Terrain and Bullet = 4
- Bullet Only = 5
- Soldier = 6
- Soldier Ghost = 7
- C4 = 8
- Underground = 9
- Soldier Only = 10
- Soldier Bullet = 11
- Terrain = 15
- Water Surface = 16
- Water Edge Block = 17
- Water Edge Allow = 18
- Beach Edge = 19
- Naval Unit = 20
- Beaching Unit = 21
- Hover Unit = 22
- Amphibious Unit = 23
- Amphibious Unit Floor = 24