Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 7 8 9 10 11 … 18 Next »
Alarm Sounds SF
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Alarm Sounds SF
12-04-2017, 12:54 AM, (This post was last modified: 13-04-2017, 02:41 PM by SharpOB.)
#1
SharpOB Offline
TSCM Member
***
Posts: 37
Threads: 8
Joined: Apr 2017
Alarm Sounds SF
This SF plays alarm sounds. It is designed to be easily deployed around a ship, relying on a single wirelink (no it doesn't, it seems it breaks with a wirelink, which is a shame - now uses 5 inputs for each alarm) to another SF that tells it what alarms to play. It's easily modifiable and should be relatively simple to understand. Comments are plastered all around the code to make suggestions.

It requires another chip to tell it when to play alarm sounds, e.g. when hull is below 25%. This is simple to do. Simply calculate the hull percentage, add an if then end statement to check whether an alarm should play and make it an output, and simply wire this chip to it, making sure to change the alarm name in the code if you have an output that isn't one of the 5 in the my code, for example, "TargettingAlarmOn", etc, at lines 42, 48, 54, 60 and 66.

Available in my shared or below:

https://pastebin.com/2PJBGnna
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.