C&C Labs Forums
»
C&C Maps and Modding
»
Generals: Modding
»
How to make a vehicle cannot be hijacked or depilot?
PrivateJoined: 4/8/2020(UTC) Posts: 20
Thanks: 4 times
|
How to make a vehicle cannot be hijacked or depilot? Can someone help me.
|
|
|
|
|
|
GeneralJoined: 3/8/2016(UTC) Posts: 1,114 Location: Norzagaray,Bulacan Thanks: 312 times Was thanked: 181 time(s) in 145 post(s)
|
remove their ejectpilot die module |
|
|
|
|
PrivateJoined: 4/8/2020(UTC) Posts: 20
Thanks: 4 times
|
Originally Posted by: adrianemapmaker  remove their ejectpilot die module Where is that exactly?
|
|
|
|
ColonelJoined: 8/13/2013(UTC) Posts: 795 Location: Middle east Thanks: 450 times Was thanked: 161 time(s) in 145 post(s)
|
He/she is talking about this module in the codes of the units you want to edit. Code:
Object AmericaVehicleHumvee
:.....
Behavior = EjectPilotDie ModuleTag_16
DeathTypes = ALL -CRUSHED -SPLATTED
ExemptStatus = HIJACKED
; The following added out per hotlist request 10/9 as above ML
VeterancyLevels = ALL -REGULAR ;only vet+ gives pilot
GroundCreationList = OCL_EjectPilotOnGround
AirCreationList = OCL_EjectPilotViaParachute
End
:.....
End
You can find this in ...\zero hour's folder\Data\INI\Object in files like AmericaVehicle.ini. If you want to change this for a single map, you will need to make a map.ini files in the map's folder in your documents and the code for the unit you want to edit. |
<3 The lilacs where the robin built, And where my brother set The laburnum on his birthday, The tree is living yet! "I rarely have many failures. If I'm baking a cake and it fails, it becomes pudding." "Sometimes I sit and wonder, "why am I not in a mental asylum?" Then I take a good look at everyone around me and realize, maybe I am." A flower does not think of competing to the flower next to it. It just blooms. |
|
|
|
MajorJoined: 3/27/2015(UTC) Posts: 490
Thanks: 4 times Was thanked: 212 time(s) in 155 post(s)
|
Anti-hijack protection, since that's besides removing the 'VEHICLE' KindOf so that Hijackers don't see the vehicles as a vehicle. For KILL_PILOT, just make the unit an ArmorSet immune to the KILL_PILOT damage type. Code:
Armor VehicleArmorWithImmunityToKillPilot
;//standard vehicle protections, just copy the kind of armor of your choice and add this:
KILL_PILOT 0%
End
Now it's not fullproof but I doubt there's AoE KILL_PILOT weapons in your mod. |
|
|
|
|
Users browsing this topic |
Guest
|
C&C Labs Forums
»
C&C Maps and Modding
»
Generals: Modding
»
How to make a vehicle cannot be hijacked or depilot?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.