Garry's Mod

Garry's Mod

Not enough ratings
Glide Siren and submat headlight test
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Vehicle
Addon Tags: Fun, Scenic, Water
File Size
Posted
Updated
8.644 KB
11 Jan @ 4:13pm
11 Jan @ 5:29pm
3 Change Notes ( view )

Subscribe to download
Glide Siren and submat headlight test

Description
examples of two highly requested features for glide

this is the culmination of around 2-3 days of effort total

the siren is prolly the most bootlegged out of the bunch, but basically just reuses slightly modified strobelight logic from the aircraft base script available in glide, hitting the changeweapons bind for glide will toggle the police sirens

official support for sirens/submat headlights isn't available in glide yet, but this example using the Gauntlet Classic should help get your foot off the ground until styledstrike adds support for either one

turning the headlights on will change the submaterial of index 0 (which is the bodypaint texture on the gauntlet), when attempting to apply this to your own vehicle, you'll have to change the 0 to whatever material index your headlight material is set to

added seatindex check for sirens, fixed major bug for the sirens that caused sirens on each every vehicle to be controlled clientside by any other car as long as they were toggled once