Posted by: sub4gman - Wednesday, April 8, 2020 11:44:41 PM
How to make a vehicle cannot be hijacked or depilot? Can someone help me.
Posted by: AdrianeMapMaker - Thursday, April 9, 2020 8:42:38 AM
remove their ejectpilot die module
Posted by: sub4gman - Friday, April 10, 2020 12:00:37 AM
[quote=adrianemapmaker;149552]remove their ejectpilot die module [/quote]
Where is that exactly?
Posted by: UTD^Force - Saturday, April 11, 2020 4:58:51 PM
He/she is talking about this module in the codes of the units you want to edit.
[code=plain]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[/code]
---------------------
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.
Posted by: Zatsupachi - Sunday, April 19, 2020 9:15:15 PM
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=cpp]
Armor VehicleArmorWithImmunityToKillPilot
;//standard vehicle protections, just copy the kind of armor of your choice and add this:
KILL_PILOT 0%
End
[/code]
Now it's not fullproof but I doubt there's AoE KILL_PILOT weapons in your mod.