Func machinegun (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:


==Keyvalues==
==Keyvalues==
* Model (model) <studio>
{{KV|Model (model)|studio|Path to the model. The machine gun is not made from brushes, but from a model.}}
::Path to the model. The machine gun is not made from brushes, but from a model.
{{KV|Rate of Fire (firerate)|integer|The number of shots per minute.}}
 
{{KV|Damage (damage)|integer}}
* Rate of Fire (firerate) <integer>
{{KV|Basis height (baseheight)|integer|Height of the machine gun origin point (i.e. the main controller point in the model)}}
::The number of shots per minute.
{{KV|Viewport forward dist (distfwd)|integer|Shifting the player's view back relative to the barrel.}}
 
{{KV|Viewport up dist (distup)|integer|Shifting the player's view up relative to the barrel.}}
* Damage (damage) <integer>
{{KV|Ammo (ammo)|choices|The number of rounds (maximum 999)}}
 
:{| class=standard-table
* Basis height (baseheight) <integer>
!| Value || Description
:: Height of the machine gun origin point (i.e. the main controller point in the model)
|-
 
| -1 ||  Infinite
* Viewport forward dist (distfwd) <integer>
|}
::shifting the player's view back relative to the barrel.
 
* Viewport up dist (distup) <integer>
::shifting the player's view up relative to the barrel.
 
* Ammo (ammo) <choices>
::The number of rounds (maximum 999, and if -1, then infinite)
::: -1: "Infinite"


[[Category:GoldSrc]]
[[Category:GoldSrc]]
[[Category:Paranoia entities]]
[[Category:Paranoia entities]]

Revision as of 05:07, 21 August 2023

Template:Entity (Static machinegun). It creates a stationary machine gun.

Icon-Important.pngImportant:Unlike the same func_tank, it is not a brush, but the essence of which the model requires.


Keyvalues

Model (model) ([todo internal name (i)]) <model path>
Path to the model. The machine gun is not made from brushes, but from a model.
Rate of Fire (firerate) ([todo internal name (i)]) <integer>
The number of shots per minute.
Damage (damage) ([todo internal name (i)]) <integer>
Basis height (baseheight) ([todo internal name (i)]) <integer>
Height of the machine gun origin point (i.e. the main controller point in the model)
Viewport forward dist (distfwd) ([todo internal name (i)]) <integer>
Shifting the player's view back relative to the barrel.
Viewport up dist (distup) ([todo internal name (i)]) <integer>
Shifting the player's view up relative to the barrel.
Ammo (ammo) ([todo internal name (i)]) <choices>
The number of rounds (maximum 999)
Value Description
-1 Infinite