Template:KV BaseVehicle: Difference between revisions
Jump to navigation
Jump to search
Tip:Put
Note:Page left for viewable history, content moved to prop_physics
(Vehicles do not have prop_static keyvalues) |
Kestrelguy (talk | contribs) (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.}} | ||
</noinclude>{{ScrollBox|title=BaseVehicle| | |||
{{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:}} | |||
:* | :* {{ent|prop_vehicle_airboat}}: <code>airboat.txt</code> | ||
:* | :* {{ent|prop_vehicle_apc}}: <code>apc.txt</code> / <code>apc_npc.txt </code> | ||
:* | :* {{ent|prop_vehicle_crane}}: <code>crane.txt</code> | ||
:* | :* {{ent|prop_vehicle_prisoner_pod}}: <code>prisoner_pod.txt</code> | ||
:* | :* {{ent|prop_vehicle_jeep}}: <code>jalopy.txt</code> {{only|{{ep2}}}} / <code>jeep_test.txt</code> | ||
:* | :* {{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. | ||
:* | :* {{ent|prop_vehicle_sin}}: <code>sincar.txt</code> / <code>sincar_pit.txt</code> {{only|{{sin}}}} | ||
{{KV|Scale of action input / framerate|intn=actionScale|float|{{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 | |||
{{KV | |||
{{KV | |||
[[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

|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:- prop_vehicle_airboat:
airboat.txt
- prop_vehicle_apc:
apc.txt
/apc_npc.txt
- prop_vehicle_crane:
crane.txt
- prop_vehicle_prisoner_pod:
prisoner_pod.txt
- prop_vehicle_jeep:
jalopy.txt
(only in) /
jeep_test.txt
- prop_vehicle_choreo_generic:
- prop_vehicle_airboat:
- 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)
- There is also
- Scale of action input / framerate (actionScale) <float>
- Todo: How fast the vehicle turns/accelerates?

}}