Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: proximity check for gamma electric attack #103

Open
Jesright73 opened this issue Aug 13, 2021 · 0 comments
Open

Suggestion: proximity check for gamma electric attack #103

Jesright73 opened this issue Aug 13, 2021 · 0 comments
Labels
enhancement Change to or improvement of existing behavior

Comments

@Jesright73
Copy link
Contributor

Gamma metroids aren't doing their part with energy conservation. They waste so many kilowatts spouting out sparks all willy nilly.

My proposition to combat this; set a proximity check on the state that tells the gamma to make sparkles. This will conserve energy, make the gammas less vulnerable in large rooms, and allow them to maintain speed for longer.

To achive this goal, replace lines 64-70 of gml_Object_oMGamma_Step_0 with this

            if (nextsp == 1)
            {
                if (distance_to_object(oCharacter) < 80 && room != rm_a4h09 && room != rm_a4h11)
                {
                    state = 7
                    spdelay = 180
                    statetime = 0
                    turndelay = 5
                }
                else if (room == rm_a4h09 || room == rm_a4h11)
                {
                    state = 7
                    spdelay = 180
                    statetime = 0
                    turndelay = 5
                }
            }

this code will not affect the two gammas in the sand-filled rooms of area 4, allowing them to continue being useful as landscapers

@Jesright73 Jesright73 added the enhancement Change to or improvement of existing behavior label Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Change to or improvement of existing behavior
Projects
None yet
Development

No branches or pull requests

1 participant