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: 21
  Thanks: 4 times
  
 
     | 
    
        
            
	      
                How to make a vehicle cannot be hijacked or depilot? Can someone help me. 
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
            
        
            
            
    
        
 GeneralJoined: 3/8/2016(UTC) Posts: 1,165   Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
  
 
     | 
    
        
            
	      
                remove their ejectpilot die module     | 
 | 
            
 
        
    
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
        
            
            
    
        
 PrivateJoined: 4/8/2020(UTC) Posts: 21
  Thanks: 4 times
  
 
     | 
    
        
            
	      
                Originally Posted by: adrianemapmaker  remove their ejectpilot die module   Where is that exactly?  
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
            
        
            
            
    
        
 ColonelJoined: 8/13/2013(UTC) Posts: 824  Location: Right around the corner  Thanks: 430 times Was thanked: 184 time(s) in 168 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.    | 
A Muslim, ask me anything about Islam if you want 
  UTD^Force 
  Moderator and former map reviewer  Big fan of C&C Labs  | 
            
 
        
    
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
        
            
            
    
        
 MajorJoined: 3/27/2015(UTC) Posts: 490
  Thanks: 5 times Was thanked: 213 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.