Template:KV BaseVehicle: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Vehicles do not have prop_static keyvalues)
(added the choice between a Src13-specific version (the new default) and a generic version.)
Line 1: Line 1:
{{ScrollBox|title=BaseVehicle|
<noinclude>{{tip|Put <code>{{!}}all{{=}}1</code> when calling this template to have it show the CS:GO version of the template instead of the Src13 version.}}
; Vehicle Script File <code>(vehiclescript)</code><code><[[string]]></code>
</noinclude>{{ScrollBox|title=BaseVehicle|
: The vehicle script files contained in <code>scripts\vehicles\</code> define the behaviour and handling of a vehicle. It is important to match the right script to the right entity/model:
{{KV|Vehicle Script File|intn=vehiclescript|string|The vehicle script files contained in <code>scripts\vehicles\</code> define the behaviour and handling of a vehicle. It is important to match the right script to the right entity/model:}}
:* [[prop_vehicle_airboat]]: <code>airboat.txt</code>
:* {{ent|prop_vehicle_airboat}}: <code>airboat.txt</code>
:* [[prop_vehicle_apc]]: <code>apc.txt</code> / <code>apc_npc.txt </code>
:* {{ent|prop_vehicle_apc}}: <code>apc.txt</code> / <code>apc_npc.txt </code>
:* [[prop_vehicle_crane]]: <code>crane.txt</code>
:* {{ent|prop_vehicle_crane}}: <code>crane.txt</code>
:* [[prop_vehicle_prisoner_pod]]: <code>prisoner_pod.txt</code>
:* {{ent|prop_vehicle_prisoner_pod}}: <code>prisoner_pod.txt</code>
:* [[prop_vehicle_jeep]]: <code>jalopy.txt</code> {{only|{{ep2}}}} / <code>jeep_test.txt</code>
:* {{ent|prop_vehicle_jeep}}: <code>jalopy.txt</code> {{only|{{ep2}}}} / <code>jeep_test.txt</code>
:* [[prop_vehicle_choreo_generic]]:  
:* {{ent|prop_vehicle_choreo_generic}}:  
:** <code>choreo_vehicle.txt</code> {{only|{{ep1}}}}
:** <code>choreo_vehicle.txt</code> {{only|{{ep1}}}}
:** <code>choreo_vehicle_ep1_dogintro.txt</code> {{only|{{ep1}}}}
:** <code>choreo_vehicle_ep1_dogintro.txt</code> {{only|{{ep1}}}}
Line 14: Line 14:
:** <code>choreo_vehicle_ep2_intro.txt</code> {{only|{{ep2}}}}
:** <code>choreo_vehicle_ep2_intro.txt</code> {{only|{{ep2}}}}
:** <code>choreo_vehicle_ep2_Outland_02.txt</code> {{only|{{ep2}}}}
:** <code>choreo_vehicle_ep2_Outland_02.txt</code> {{only|{{ep2}}}}
:** <code>choreo_vehicle_ep2_playertrapped.txt</code> {{only|{{ep2}}}}
:** <code>choreo_vehicle_ep2_playertrapped.txt</code> {{only|{{ep2}}}}}}
:** <code>player_ending.txt</code> {{only|{{portal2}}}}
{{#if: {{{all|}}} | :** <code>player_ending.txt</code> {{only|{{portal2}}}}
:** <code>player_down.txt</code> {{only|{{portal2}}}}
:** <code>player_down.txt</code> {{only|{{portal2}}}}
:** <code>br_player_look.txt</code> {{only|{{portal2}}}}
:** <code>br_player_look.txt</code> {{only|{{portal2}}}}
:** <code>br_player_view.txt</code> {{only|{{portal2}}}}
:** <code>br_player_view.txt</code> {{only|{{portal2}}}} }}
:* There is also <code>reference_vehicle.txt</code>, which you can modify to make your own vehicle or use as-is.
:* There is also <code>reference_vehicle.txt</code>, which you can modify to make your own vehicle or use as-is.
:* [[prop_vehicle_sin]]: <code>sincar.txt</code> / <code>sincar_pit.txt</code> {{only|{{sin}}}}
:* {{ent|prop_vehicle_sin}}: <code>sincar.txt</code> / <code>sincar_pit.txt</code> {{only|{{sin}}}}
; Scale of action input / framerate <code>(actionScale)</code> <code><[[float]]></code>
{{KV|Scale of action input / framerate|intn=actionScale|float|{{todo|How fast the vehicle turns/accelerates?}}}}
: {{todo|How fast the vehicle turns/accelerates?}}
{{#if: {{{all|}}} | {{KV BasePropPhysics}} | {{KV BasePropPhysics|old=1}} }}
{{KV BasePropPhysics}}
{{#if: {{{all|}}} | {{KV BaseEntity}} | {{KV BaseEntity|base=1}} }}
{{KV Global}}
{{KV Origin}}
{{KV Targetname}}
[[Category:Vehicle Entities]]
[[Category:Vehicle Entities]]
}}<noinclude>[[Category:Keyvalue Templates|BaseVehicle]]</noinclude>
}}<noinclude>[[Category:Keyvalue Templates|BaseVehicle]]</noinclude>

Revision as of 14:03, 29 April 2022

Tip.pngTip:Put |all=1 when calling this template to have it show the CS:GO version of the template instead of the Src13 version.
BaseVehicle:
Vehicle Script File (vehiclescript) <string>
The vehicle script files contained in scripts\vehicles\ define the behaviour and handling of a vehicle. It is important to match the right script to the right entity/model:
  • There is also reference_vehicle.txt, which you can modify to make your own vehicle or use as-is.
  • prop_vehicle_sin: sincar.txt / sincar_pit.txt (only in SiN)
Scale of action input / framerate (actionScale) <float>
Todo: How fast the vehicle turns/accelerates?
Note.pngNote:Page left for viewable history, content moved to prop_physics

}}