Depends where you want it to show up in the Global options window, but this should get you started.
In GlobalInfo.cs, find
public class RoundOptions {
public int totalRounds = 3;
public bool hasTimer = true;
etc...
and add this to the end of the list:
public float firstHitBonus = 0f;
In GlobalEditorWindow.cs find
// Round Options
EditorGUILayout.BeginVertical(rootGroupStyle);{
EditorGUILayout.BeginHorizontal();{
roundOptions = EditorGUILayout.Foldout(roundOptions, "Round Options", foldStyle);
helpButton("global:round");
}EditorGUILayout.EndHorizontal();
etc...
At the bottom of the roundOptions list, add this:
globalInfo.roundOptions.firstHitBonus = EditorGUILayout.FloatField ("First Hit Bonus", globalInfo.roundOptions.firstHitBonus);
in ControlsScript.cs, find this section and add the line that you are missing:
// Cast First Hit if true
if (!firstHit && !opControlsScript.firstHit){
opControlsScript.firstHit = true;
opControlsScript.AddGauge (UFE.config.roundOptions.firstHitBonus);
UFE.FireAlert(UFE.config.selectedLanguage.firstHit, opInfo);
}
In the Global options window, under Round Options, there should be a section at the bottom that says First Hit Bonus, where you can put whatever value you want.