Snippets

blaac all players have a horn [B]

Updated by blaac

File horns.mod.gml Modified

  • Ignore whitespace
  • Hide word diff
 #define step
 with (Player) if (button_pressed(index, "horn"))
 	{
-	if race_id != 6 && race_id <= 15 && (bskin = 0 || bskin = 1)
+	if race_id != 6 && race_id <= 15 && race_id != 14 && (bskin = 0 || bskin = 1)
 		{
 		sound_play(asset_get_index("sndMutant" + string(race_id) + "Cnfm"))
 		}
Updated by blaac

File horns.mod.gml Modified

  • Ignore whitespace
  • Hide word diff
 #define step
 with (Player) if (button_pressed(index, "horn"))
 	{
-	if race_id != 6 && race_id <= 15
+	if race_id != 6 && race_id <= 15 && (bskin = 0 || bskin = 1)
 		{
 		sound_play(asset_get_index("sndMutant" + string(race_id) + "Cnfm"))
 		}
Updated by blaac

File horns.mod.gml Modified

  • Ignore whitespace
  • Hide word diff
 #define step
-with (Player) if (button_pressed(index, "horn")) && race_id != 6
-	{sound_play(snd_wrld)}
+with (Player) if (button_pressed(index, "horn"))
+	{
+	if race_id != 6 && race_id <= 15
+		{
+		sound_play(asset_get_index("sndMutant" + string(race_id) + "Cnfm"))
+		}
+	else if race_id != 6
+		{
+		sound_play(snd_wrld)
+		}
+	}
Created by blaac

File horns.mod.gml Added

  • Ignore whitespace
  • Hide word diff
+#define step
+with (Player) if (button_pressed(index, "horn")) && race_id != 6
+	{sound_play(snd_wrld)}
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.