VehicleScripts: Difference between revisions

From Empires Wiki
Jump to navigation Jump to search
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ScriptingDocumentation}}
{{ScriptingDocumentation}}
__NOTOC__
__NOTOC__
==Overview==
Chassis Scripts have quite a few variables, many of them pertaining to the model, and what shows up in the Vehicle Customization Menu.  The Chassis Script has all the control over how the turret and cannon handle, as well as armor defines.  The Vehicle Chassis has at least 4 subkeys, defining world weapon model position, and the locations of different items in the Vehicle Creation menu.  There can be any number of Weapon Slot sub keys, depending on how many weapons the vehicle has.
Also see: https://developer.valvesoftware.com/wiki/Vehicles_(Scripting_Parameters)
==Chassis Properties==
===General===
[[ChassisScript.Name | Name]]<br>
[[ChassisScript.SpottedName | Spotted Name]]<br>
[[ChassisScript.Description | Description]]<br>
[[ChassisScript.Team | Team]]<br>
[[ChassisScript.Horn | Horn]]<br>
[[ChassisScript.VehicleScript | Vehicle Script]]<br>
===Models===
[[ChassisScript.Model | Model]]<br>
[[ChassisScript.TurretModel | Turret Model]]<br>
[[ChassisScript.CannonModel | Cannon Model]]<br>
===HUD===
[[ChassisScript.HUDChassisPic | HUD Chassis Pic]]<br>
[[ChassisScript.HUDTurretPic | HUD Turret Pic]]<br>
[[ChassisScript.HUDChassisWidth | HUD Chassis Width]]<br>
[[ChassisScript.HUDChassisHeight | HUD Chassis Height]]<br>
[[ChassisScript.HUDChassisXOffset | HUD Chassis X Offset]]<br>
[[ChassisScript.HUDChassisYOffset | HUD Chassis Y Offset]]<br>
===Vehicle Customization Menu===
[[ChassisScript.ChassisPic | Chassis Pic]]<br>
[[ChassisScript.SidePic | Side Pic]]<br>
[[ChassisScript.TopPic | Top Pic]]<br>
[[ChassisScript.EnginePic | Engine Pic]]<br>
[[ChassisScript.SummaryPic | Summary Pic]]<br>
[[ChassisScript.MapIcon | Map Icon]]<br>
[[ChassisScript.UnitIcon | Unit Icon]]<br>
===Armor Angles===
[[ChassisScript.ArmorAngle1 | Armor Angle 1]]<br>
[[ChassisScript.ArmorAngle2 | Armor Angle 2]]<br>
[[ChassisScript.ArmorAngle3 | Armor Angle 3]]<br>
[[ChassisScript.ArmorAngle4 | Armor Angle 4]]<br>
===Properties===
[[ChassisScript.Type | Type]]<br>
[[ChassisScript.MaxWeight | Max Weight]]<br>
[[ChassisScript.BaseWeight | Base Weight]]<br>
[[ChassisScript.Cost | Cost]]<br>
[[ChassisScript.SpawnPoint | Spawn Point]]<br>
[[ChassisScript.Research | Research]]<br>
[[ChassisScript.NeutralTurnFactor| Neutral Turn Factor]]<br>
[[ChassisScript.PhysicsImpactModifier| Physics Impact Modifier]]<br>
===Health Properties===
[[ChassisScript.Health | Health]]<br>
[[ChassisScript.RepairStationHeal | Repair Station Heal]]<br>
[[ChassisScript.EngineerHeal | Engineer Heal]]<br>
[[ChassisScript.RepairStationRepair | Repair Station Repair]]<br>
[[ChassisScript.EngineerRepair | Engineer Repair]]<br>
[[ChassisScript.HeatCapacity | Heat Capacity]]<br>
===Recycling Properties===
[[ChassisScript.FriendlyRecyclingPercentage| Friendly Recycling Percentage]]<br>
[[ChassisScript.EnemyRecyclingPercentage | Enemy Recycling Percentage]]<br>
===Seats===
[[ChassisScript.Seats | Seats]]<br>
<br>
<br>
Chassis Scripts have quite a few variables, many of them pertaining to the model, and what shows up in the Vehicle Customization Menu. The Chassis Script has all the control over how the turret and cannon handle, as well as armor defines. The Vehicle Chassis has 5 subkeys, defining world weapon model position, and the locations of different items in the Vehicle Creation menu.
[[ChassisScript.Seat_1_Visible | Seat_1_Visible]]<br>
[[ChassisScript.Seat_1_PersonalWeapons | Seat_1_PersonalWeapons]]<br>
[[ChassisScript.Seat_1_Cannon | Seat_1_Cannon]]<br>
[[ChassisScript.Seat_1_Turret | Seat_1_Turret]]<br>
<br>
[[ChassisScript.Seat_2_Visible | Seat_2_Visible]]<br>
[[ChassisScript.Seat_2_PersonalWeapons | Seat_2_PersonalWeapons]]<br>
[[ChassisScript.Seat_3_Visible | Seat_3_Visible]]<br>
[[ChassisScript.Seat_3_PersonalWeapons | Seat_3_PersonalWeapons]]<br>
[[ChassisScript.Seat_4_Visible | Seat_4_Visible]]<br>
[[ChassisScript.Seat_4_PersonalWeapons | Seat_4_PersonalWeapons]]<br>
[[ChassisScript.Seat_5_Visible | Seat_5_Visible]]<br>
[[ChassisScript.Seat_5_PersonalWeapons | Seat_5_PersonalWeapons]]<br>
[[ChassisScript.Seat_6_Visible | Seat_6_Visible]]<br>
[[ChassisScript.Seat_6_PersonalWeapons | Seat_6_PersonalWeapons]]<br>
[[ChassisScript.Seat_7_Visible | Seat_7_Visible]]<br>
[[ChassisScript.Seat_7_PersonalWeapons | Seat_7_PersonalWeapons]]<br>
[[ChassisScript.Seat_8_Visible | Seat_8_Visible]]<br>
[[ChassisScript.Seat_8_PersonalWeapons | Seat_8_PersonalWeapons]]<br>
<br>
[[ChassisScript.Seat1MinPitch | Seat 1 Min Pitch]]<br>
[[ChassisScript.Seat1MaxPitch | Seat 1 Max Pitch]]<br>
 
===Armor Settings===
[[ChassisScript.MaxFrontArmor | Max Front Armor]]<br>
[[ChassisScript.MaxRearArmor | Max Rear Armor]]<br>
[[ChassisScript.MaxLeftArmor | Max Left Armor]]<br>
[[ChassisScript.MaxRightArmor | Max Right Armor]]<br>
 
===Weapon Limitations===
[[ChassisScript.MaxMachineGuns | Max Machine Guns]]<br>
[[ChassisScript.MaxGrenadeLaunchers | Max Grenade Launchers]]<br>
[[ChassisScript.MaxTankCannons | Max Tank Cannons]]<br>
[[ChassisScript.MaxMissileLaunchers | Max Missile Launchers]]<br>
[[ChassisScript.MaxArtilleryCannons | Max Artillery Cannons]]<br>


===Particle Attachments===
Using these attributes, you can have up to 10 different particles on a single model show when the vehicle is destroyed. The attributes go from 0-9. You must always state both attributes.


==Chassis Properties==
'''WRONG:'''
 
ExplosionAttachment0" "explosion1" // Attachment 0 in the model.<br/>
ExplosionParticle0" "Explosion_std" // Particle 0 on attachment 0.<br/>
ExplosionParticle1" "Explosion_std" // Particle 1 on attachment 0.<br/>
 
'''CORRECT:'''
 
ExplosionAttachment0" "explosion1" // Attachment 0 in the model.<br/>
ExplosionParticle0" "Explosion_std" // Particle 0 on attachment 0.<br/>
ExplosionAttachment1" "explosion1" // Attachment 1 in the model. This attachment can be the same as the previous attachment.<br/>
ExplosionParticle1" "Explosion_std" // Particle 1 on attachment 1.<br/>


{{ChassisScript}}
*ExplosionAttachmentX - This attribute contains the model attachment, which is where the particle will be created.
*ExplosionParticleX - This attribute contains the name of the particle that will be created.






==Weapon Slot==
{{ChassisWeaponSlot}}


==Armor Slot==
{{ChassisArmorSlot}}


==Engine Slot==
{{ChassisEngineSlot}}




[[Category:Scripting]]
[[Category:Scripting]]

Latest revision as of 10:43, 1 October 2018

Empires Scripting Documentation
Scripting Overview | Vehicle Script Overview | Vehicle Handling Script Overview | Weapon Script Overview | Armor Script Overview | Building Script Overview | Infantry Script Overview | Hint Messages | Loading Screen Script Overview | Tutorials



Overview

Chassis Scripts have quite a few variables, many of them pertaining to the model, and what shows up in the Vehicle Customization Menu. The Chassis Script has all the control over how the turret and cannon handle, as well as armor defines. The Vehicle Chassis has at least 4 subkeys, defining world weapon model position, and the locations of different items in the Vehicle Creation menu. There can be any number of Weapon Slot sub keys, depending on how many weapons the vehicle has.

Also see: https://developer.valvesoftware.com/wiki/Vehicles_(Scripting_Parameters)

Chassis Properties

General

Name
Spotted Name
Description
Team
Horn
Vehicle Script

Models

Model
Turret Model
Cannon Model

HUD

HUD Chassis Pic
HUD Turret Pic
HUD Chassis Width
HUD Chassis Height
HUD Chassis X Offset
HUD Chassis Y Offset

Vehicle Customization Menu

Chassis Pic
Side Pic
Top Pic
Engine Pic
Summary Pic
Map Icon
Unit Icon

Armor Angles

Armor Angle 1
Armor Angle 2
Armor Angle 3
Armor Angle 4

Properties

Type
Max Weight
Base Weight
Cost
Spawn Point
Research
Neutral Turn Factor
Physics Impact Modifier

Health Properties

Health
Repair Station Heal
Engineer Heal
Repair Station Repair
Engineer Repair
Heat Capacity

Recycling Properties

Friendly Recycling Percentage
Enemy Recycling Percentage

Seats

Seats

Seat_1_Visible
Seat_1_PersonalWeapons
Seat_1_Cannon
Seat_1_Turret

Seat_2_Visible
Seat_2_PersonalWeapons
Seat_3_Visible
Seat_3_PersonalWeapons
Seat_4_Visible
Seat_4_PersonalWeapons
Seat_5_Visible
Seat_5_PersonalWeapons
Seat_6_Visible
Seat_6_PersonalWeapons
Seat_7_Visible
Seat_7_PersonalWeapons
Seat_8_Visible
Seat_8_PersonalWeapons

Seat 1 Min Pitch
Seat 1 Max Pitch

Armor Settings

Max Front Armor
Max Rear Armor
Max Left Armor
Max Right Armor

Weapon Limitations

Max Machine Guns
Max Grenade Launchers
Max Tank Cannons
Max Missile Launchers
Max Artillery Cannons

Particle Attachments

Using these attributes, you can have up to 10 different particles on a single model show when the vehicle is destroyed. The attributes go from 0-9. You must always state both attributes.

WRONG:

ExplosionAttachment0" "explosion1" // Attachment 0 in the model.
ExplosionParticle0" "Explosion_std" // Particle 0 on attachment 0.
ExplosionParticle1" "Explosion_std" // Particle 1 on attachment 0.

CORRECT:

ExplosionAttachment0" "explosion1" // Attachment 0 in the model.
ExplosionParticle0" "Explosion_std" // Particle 0 on attachment 0.
ExplosionAttachment1" "explosion1" // Attachment 1 in the model. This attachment can be the same as the previous attachment.
ExplosionParticle1" "Explosion_std" // Particle 1 on attachment 1.

  • ExplosionAttachmentX - This attribute contains the model attachment, which is where the particle will be created.
  • ExplosionParticleX - This attribute contains the name of the particle that will be created.


Weapon Slot

Bone
Seat
Size
Type
Slot_x
Slot_y
Origin_x
Origin_y

Armor Slot

Size
Type
Slot_x
Slot_y
Front_x
Front_y
Rear_x
Rear_y
Left_x
Left_y
Right_x
Right_y
Front_Width
Front_Height
Left_Width
Left_Height

Engine Slot

Size
Type
Slot_x
Slot_y