Advertisement
Whiplash141

Weapon Salvo Code Readme

Oct 9th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.79 KB | None | 0 0
  1. /*    
  2. Whip's Multi-Group Weapon Salvo Script v30 - Revision: 10/9/17
  3. ////PUBLIC RELEASE////  
  4. HOWDY!  
  5. ______________________________________________________________________________________    
  6. Setup Instructions:  
  7.  
  8.     1.) Create a timer. Assign the actions to the following:    
  9.         * "trigger now" itself
  10.         * "start" iteself
  11.         * Run this program with default argument
  12.     2.) Start the timer        
  13.     3.) Make a group of your weapons with the name "Salvo Group <unique tag>" where <unique tag> is a unique word or phrase
  14.     4.) You can make as many salvo groups as you want!
  15. ______________________________________________________________________________________        
  16. Arguments:  
  17.  
  18.     Type in these arguments without quotes. Arguments are case INSENSITIVE.
  19.     These arguments can be input manually to the program argument field,
  20.     this program's Custom Data, through timers, or through sensors.
  21.      
  22.     In the Custom Data, command lines can be seperated with semi-colons, or they can each have
  23.     their own lines.
  24.  
  25.     ///Basic Argument Syntax///
  26.         <Group name tag>:<command 1>
  27.    
  28.     /// Advanced Argument Syntax ///
  29.         You can also execute several commands to the same group.
  30.         <Group name tag>:<command 1>:<command 2>
  31.    
  32.     /// Multi-Group Command Syntax ///
  33.         You can also execute several commands to several different groups in one line
  34.         <Group 1 name>:<command 1>:<command 2>;<Group 2 name>:<command 1>:<command 2>
  35.  
  36.     /// Available commands ///
  37.         RPS <number>  
  38.             Changes the rate of fire in rounds per second.  
  39.             * [Maximum RPS] = [Standard RPS] * [Number of sequenced weapons]
  40.                 NOTE: The script will round this number, this is not a bug!
  41.                
  42.         RPM <number>    
  43.             Changes the rate of fire in rounds per minute.  
  44.             * [Maximum RPM] = 60 * [Standard RPM] * [Number of sequenced weapons]
  45.                 NOTE: The script will round this number, this is not a bug!
  46.  
  47.         delay <integer>  
  48.             Sets number of ticks between shots (60 ticks = 1 sec)
  49.  
  50.         default  
  51.             Lets the script to set the fire rate automatically based on the number of    
  52.             available weapons (using the default fixed rocket rate of fire). The script
  53.             will attempt to fire ALL sequenced weapons in the span of ONE second with
  54.             this particular setting.
  55.  
  56.         fire_on  
  57.             Toggles fire on only  
  58.  
  59.         fire_off  
  60.             Toggles fire off only  
  61.  
  62.         fire_toggle
  63.             Toggles fire on/off  
  64.    
  65. ______________________________________________________________________________________    
  66. Examples:
  67.  
  68.     "Salvo Group 1 : fire_on"
  69.         Toggles the weapons' firing on and use default rate of fire in any group with
  70.         "Salvo Group 1" in its name
  71.        
  72.     "Salvo Group 2 : default"
  73.         Resets the default rate of fire in any group with "Salvo Group 2" in its name
  74.    
  75.     "Salvo Group 3 : rpm 10 : fire_toggle"
  76.         Sets the rate of fire to 10 rounds per minute and toggles firing in any group
  77.         with "Salvo Group 3" in its name
  78.        
  79.     "Salvo Group 1 : rps 10 ; Salvo Group 2 : rps 5"
  80.         Sets the rate of fire to 10 rounds per second on any any group named "Salvo Group 1"
  81.         and also sets the rate of fire to 3 rounds per second on any any group named "Salvo Group 2"
  82.    
  83.     "potato : delay 3"
  84.         Sets the delay between shots to 3 ticks in any group with "Potato" in its name
  85.        
  86.        
  87. ______________________________________________________________________________________    
  88. Author's Notes:
  89.  
  90.     If you have any questions feel free to post them on the workshop page!            
  91.  
  92.     - Whiplash141
  93. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement