Is this one of the main codes from SRB2 heroes?

// LUA_TSON
// ---------------------------------
// Team Sonic's power of teamwork!
// ---------------------------------
// This thing used to be 1000+ lines,
// but I got tired of copy-pasting
// everything, so now it's really more
// of a header, containing team info.
// Much cleaner, much smaller, and easier to maintain!

// Sounds effects for switching
freeslot("sfx_sonic", "sfx_tails", "sfx_knux")

// CAMERA SETTINGS
// This is a thing so the power character doesn't block your view
local camdistforce = 128 // In analog, this value *3/2 is the distance
local camheightforce = 30

// --------------------------------------------------------------------
// Set these to the sounds/voices you want your characters to play
// on switch!
// --------------------------------------------------------------------
local speedsound = sfx_sonic
local flysound = sfx_tails
local powersound = sfx_knux

// --------------------------------------------------------------------
// Set these to whatever characters you want on your team
// --------------------------------------------------------------------
local speedchar = "sonic"
local flychar = "tails"
local powerchar = "knuckles"
// TODO: Make this read from skins rather than ask it here
local defspdcol = SKINCOLOR_BLUE
local defflycol = SKINCOLOR_ORANGE
local defpowcol = SKINCOLOR_RED

// --------------------------------------------------------------------
// Character heights
// It's used for the move function and fly formation
// --------------------------------------------------------------------
local speedheight = 40
local flyheight = 40
local powerheight = 40

// --------------------------------------------------------------------
// Flight type
// Fix for Kilometers and Cream, 1 = Kilo, 2 = Cream. Most likely, 0 is fine
// --------------------------------------------------------------------
local flighttype = 1

// --------------------------------------------------------------------
// Glide type
// 0 = Knuckles, 1 = Omega, 2 = Big, 3 = Vector
// Obviously, for most characters 0 or 3 is fine. 1 and 2 are rather specific
// --------------------------------------------------------------------
local glidetype = 0

// --------------------------------------------------------------------
// Power attack type
// Sets wether the power type can punch and dunk, shoot, or nothing
// 1 = punch, 2 = shoot, anything else (0) = nothing
// --------------------------------------------------------------------
local powerattacktype = 1

// Just as an option, though I wouldn't reccomend it, you can change fly formation to be a copy of speed formation,
// but with the fly character as the leader.
// Just set this to false if you want that
local shouldflytower = true
local flycharcanspin = false // You can also make them spindash, but I personaly think it looks dumb.

// Set this to make the power character use frame n for hanging when in fly formation,
// useful when they're too big or small, so they don't sink into the ground (or hover above it!)
local bighang = false

// --------------------------------------------------------------------
// Thinkframe hook
// All it's used for is to call a function, so it's pretty small now.
// --------------------------------------------------------------------
addHook("ThinkFrame", do
for player in players.iterate
H_DoSonicHeroes(player, camdistforce, camheightforce, speedsound, flysound, powersound, speedchar, flychar, powerchar, defspdcol, defflycol, defpowcol, speedheight, flyheight, powerheight, flighttype, glidetype, powerattacktype, shouldflytower, flycharcanspin, bighang)
end
end)


If this code makes the characters do the things, let me know, cause I've been thinking of putting stuff like this in BuddyEX
 
// LUA_TSON
// ---------------------------------
// Team Sonic's power of teamwork!
// ---------------------------------
// This thing used to be 1000+ lines,
// but I got tired of copy-pasting
// everything, so now it's really more
// of a header, containing team info.
// Much cleaner, much smaller, and easier to maintain!

// Sounds effects for switching
freeslot("sfx_sonic", "sfx_tails", "sfx_knux")

// CAMERA SETTINGS
// This is a thing so the power character doesn't block your view
local camdistforce = 128 // In analog, this value *3/2 is the distance
local camheightforce = 30

// --------------------------------------------------------------------
// Set these to the sounds/voices you want your characters to play
// on switch!
// --------------------------------------------------------------------
local speedsound = sfx_sonic
local flysound = sfx_tails
local powersound = sfx_knux

// --------------------------------------------------------------------
// Set these to whatever characters you want on your team
// --------------------------------------------------------------------
local speedchar = "sonic"
local flychar = "tails"
local powerchar = "knuckles"
// TODO: Make this read from skins rather than ask it here
local defspdcol = SKINCOLOR_BLUE
local defflycol = SKINCOLOR_ORANGE
local defpowcol = SKINCOLOR_RED

// --------------------------------------------------------------------
// Character heights
// It's used for the move function and fly formation
// --------------------------------------------------------------------
local speedheight = 40
local flyheight = 40
local powerheight = 40

// --------------------------------------------------------------------
// Flight type
// Fix for Kilometers and Cream, 1 = Kilo, 2 = Cream. Most likely, 0 is fine
// --------------------------------------------------------------------
local flighttype = 1

// --------------------------------------------------------------------
// Glide type
// 0 = Knuckles, 1 = Omega, 2 = Big, 3 = Vector
// Obviously, for most characters 0 or 3 is fine. 1 and 2 are rather specific
// --------------------------------------------------------------------
local glidetype = 0

// --------------------------------------------------------------------
// Power attack type
// Sets wether the power type can punch and dunk, shoot, or nothing
// 1 = punch, 2 = shoot, anything else (0) = nothing
// --------------------------------------------------------------------
local powerattacktype = 1

// Just as an option, though I wouldn't reccomend it, you can change fly formation to be a copy of speed formation,
// but with the fly character as the leader.
// Just set this to false if you want that
local shouldflytower = true
local flycharcanspin = false // You can also make them spindash, but I personaly think it looks dumb.

// Set this to make the power character use frame n for hanging when in fly formation,
// useful when they're too big or small, so they don't sink into the ground (or hover above it!)
local bighang = false

// --------------------------------------------------------------------
// Thinkframe hook
// All it's used for is to call a function, so it's pretty small now.
// --------------------------------------------------------------------
addHook("ThinkFrame", do
for player in players.iterate
H_DoSonicHeroes(player, camdistforce, camheightforce, speedsound, flysound, powersound, speedchar, flychar, powerchar, defspdcol, defflycol, defpowcol, speedheight, flyheight, powerheight, flighttype, glidetype, powerattacktype, shouldflytower, flycharcanspin, bighang)
end
end)


If this code makes the characters do the things, let me know, cause I've been thinking of putting stuff like this in BuddyEX
These are largely just parameters rather than code for abilities.
 

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top