Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void A_FastSerpentHumpDecide()
- {
- if (CheckLOF(CLOFF_SKIPOBJECT, maxTargetRange, meleeThreshold) && MissileState != NULL)
- {
- if (random[SerpentHump]() > 30)
- {
- return;
- }
- else if (random[SerpentHump]() < 40)
- { // Missile attack
- SetState (MeleeState);
- return;
- }
- }
- else if (random[SerpentHump]() > 3)
- {
- return;
- }
- if (!CheckMeleeRange ())
- { // The hump shouldn't occur when within melee range
- if (CheckLOF(CLOFF_SKIPOBJECT, maxTargetRange, meleeThreshold) && MissileState != NULL && random[SerpentHump]() < 128)
- {
- SetState (MeleeState);
- }
- else
- {
- SetStateLabel("Hump");
- A_PlaySound ("SerpentActive", CHAN_BODY);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment