Garry's Mod

Garry's Mod

Glide // Circular Functions (Nitrous, Health Bar)
 此主题已被置顶,因此可能具有重要性
AludriX  [开发者] 9 月 3 日 上午 4:43
For Vehicle Developers
If you are a Glide vehicle developer and you'd like to specify your own attributes (nitrous for example) within your vehicles, you can do that!

Circular Functions reads certain variables from your vehicle and applies them to your car on spawn. If they are not present then CF will use the convar values for the missing vars.

Below is a list of available variables:
  • ENT.NitrousEnabled: bool
  • ENT.NitrousPower: float
  • ENT.NitrousDepletionRate: float
  • ENT.NitrousRegenRate: float
  • ENT.NitrousRegenDelay: float
  • ENT.NitrousBurst: bool
  • ENT.NitrousColor: Color()

  • ENT.NitrousStartSound: string
  • ENT.NitrousLoopingSound: string
  • ENT.NitrousEndSound: string
  • ENT.NitrousEmptySound: string
  • ENT.CriticalDamageSound: string

  • ENT.SirenTable: {string} (must be declared in the shared realm)
最后由 AludriX 编辑于; 10 月 27 日 下午 11:02
< >
正在显示第 1 - 2 条,共 2 条留言
AludriX  [开发者] 9 月 3 日 上午 4:47 
Note: For sound variables, ensure that they do not include "sound/"

e.g. ENT.NitrousStartSound = "glide_nitrous/nitrous_burst.wav"
AludriX  [开发者] 10 月 27 日 下午 11:06 
Example of ENT.SirenTable:

ENT.SirenTable = { ")nfsmw/policesiren/siren_01.wav", ")nfsmw/policesiren/siren_02.wav", }

Clicking the Switch Siren keybind will cycle between these two sirens while the sirens are active.
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50