Template:KV BaseVehicle: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Add P2 vehicle scripts and {{only}} tags)
No edit summary
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{ScrollBox|title=BaseVehicle|
{{minititle|BaseVehicle}}
; Vehicle Script File <code>(vehiclescript)</code><code><[[string]]></code>
{{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:}}
: 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:
:* {{ent|prop_vehicle_airboat}}: <code>airboat.txt</code>
:* [[prop_vehicle_airboat]]: <code>airboat.txt</code>
:* {{ent|prop_vehicle_apc}}: <code>apc.txt</code> / <code>apc_npc.txt </code>
:* [[prop_vehicle_apc]]: <code>apc.txt</code> / <code>apc_npc.txt </code>
:* {{ent|prop_vehicle_crane}}: <code>crane.txt</code>
:* [[prop_vehicle_crane]]: <code>crane.txt</code>
:* {{ent|prop_vehicle_prisoner_pod}}: <code>prisoner_pod.txt</code>
:* [[prop_vehicle_prisoner_pod]]: <code>prisoner_pod.txt</code>
:* {{ent|prop_vehicle_jeep}}: <code>jalopy.txt</code> {{only|{{ep2}}}} / <code>jeep_test.txt</code>
:* [[prop_vehicle_jeep]]: <code>jalopy.txt</code> {{only|{{ep2}}}} / <code>jeep_test.txt</code>
:* {{ent|prop_vehicle_choreo_generic}}:
:* [[prop_vehicle_choreo_generic]]:  
:** {{hl2ep1|2.bold}} only<nowiki>:</nowiki>
:** <code>choreo_vehicle.txt</code> {{only|{{ep1}}}}
:** <code>choreo_vehicle.txt</code>
:** <code>choreo_vehicle_ep1_dogintro.txt</code> {{only|{{ep1}}}}
:** <code>choreo_vehicle_ep1_dogintro.txt</code>
:** <code>choreo_vehicle_ep2_barn1.txt</code> {{only|{{ep2}}}}
:** {{hl2ep2|2.bold}} only<nowiki>:</nowiki>
:** <code>choreo_vehicle_ep2_hangar.txt</code> {{only|{{ep2}}}}
:** <code>choreo_vehicle_ep2_barn1.txt</code>
:** <code>choreo_vehicle_ep2_intro.txt</code> {{only|{{ep2}}}}
:** <code>choreo_vehicle_ep2_hangar.txt</code>
:** <code>choreo_vehicle_ep2_Outland_02.txt</code> {{only|{{ep2}}}}
:** <code>choreo_vehicle_ep2_intro.txt</code>
:** <code>choreo_vehicle_ep2_playertrapped.txt</code> {{only|{{ep2}}}}
:** <code>choreo_vehicle_ep2_Outland_02.txt</code>
:** <code>player_ending.txt</code> {{only|{{portal2}}}}
:** <code>choreo_vehicle_ep2_playertrapped.txt</code> {{#if: {{{all|}}} |
:** <code>player_down.txt</code> {{only|{{portal2}}}}
:** {{p2|2.bold}} only<nowiki>:</nowiki>
:** <code>br_player_look.txt</code> {{only|{{portal2}}}}
:** <code>player_ending.txt</code>
:** <code>br_player_view.txt</code> {{only|{{portal2}}}}
:** <code>player_down.txt</code>
:** <code>br_player_look.txt</code>
:** <code>br_player_view.txt</code> }}
:* 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|{{sineps}}}}
; Scale of action input / framerate <code>(actionScale)</code> <code><[[float]]></code>
:* {{ent|p3_vehicle_segway}}: <code>segway.txt</code> {{only|{{p3}}}}
: {{todo|How fast the vehicle turns/accelerates?}}
{{KV|Scale of action input / framerate|intn=actionScale|float|{{todo|How fast the vehicle turns/accelerates?}}}}
{{KV prop_static_base}}
{{KV Global}}
{{KV Origin}}
{{KV Targetname}}
{{KV GMOD}}
[[Category:Vehicle Entities]]
[[Category:Vehicle Entities]]
}}<noinclude>[[Category:Keyvalue Templates|BaseVehicle]]</noinclude>
<noinclude>[[Category:Keyvalue Templates|BaseVehicle]]</noinclude>

Latest revision as of 22:42, 17 September 2024

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:
Scale of action input / framerate (actionScale) <float>
Todo: How fast the vehicle turns/accelerates?