//TESH.scrollpos=38
//TESH.alwaysfold=0
function MovePaladin takes boolean left returns nothing
local real x
local real angle
if udg_GameStarted then
if left then
set x = -448.00
set angle = 180.00
set udg_lKeyDown = true
else
set x = 448.00
set angle = 0.00
set udg_rKeyDown = true
endif
call SetUnitFacingTimed(gg_unit_Hpal_0001, angle, 0.00)
call IssuePointOrder(gg_unit_Hpal_0001, "move", x, 1000.00)
endif
endfunction
function StopPaladin takes boolean left returns nothing
local boolean moving
local real angle
if udg_GameStarted then
if left then
set udg_lKeyDown = false
set moving = udg_rKeyDown
else
set udg_rKeyDown = false
set moving = udg_lKeyDown
endif
if moving then
call MovePaladin(not left)
else
//both keys have been released.
call IssueImmediateOrder(gg_unit_Hpal_0001, "stop")
//If simply trying to nudge the unit in a direction, don't disrupt facing.
set angle = GetUnitFacing(gg_unit_Hpal_0001)
if angle < 10.00 or angle > 170.00 then
//Otherwise, set facing to treat both directions equally
call SetUnitFacingTimed(gg_unit_Hpal_0001, 90.00, 0.00)
endif
endif
endif
endfunction
function SetUnitSpawnPoint takes nothing returns nothing
call MoveLocation(udg_MoveEventPoint, GetRandomReal(GetRectMinX(gg_rct_Spawn_Regeon), GetRectMaxX(gg_rct_Spawn_Regeon)), GetRandomReal(GetRectMinY(gg_rct_Spawn_Regeon), GetRectMaxY(gg_rct_Spawn_Regeon)))
endfunction
function SendUnit takes nothing returns nothing
call IssuePointOrder(udg_TempUnit, "move", GetRandomReal(GetRectMinX(gg_rct_Death_Regeon), GetRectMaxX(gg_rct_Death_Regeon)), GetRandomReal(GetRectMinY(gg_rct_Death_Regeon), GetRectMaxY(gg_rct_Death_Regeon)))
endfunction
Name | Type | is_array | initial_value |
_RecycledLady | unit | No | |
_RecycledPigs | unit | Yes | |
_RecycledSheep | unit | Yes | |
_RecyclePigs | integer | No | |
_RecycleSheep | integer | No | |
BonusScore | integer | No | 0 |
bPlayerInvul | boolean | No | false |
CollisionSize | integer | No | |
DeathSpeechNum | integer | No | |
DeathSpeechString | string | Yes | |
Difficulty | integer | No | 1 |
ExtralifeChance | integer | No | 0 |
GameRestartTimer | timer | No | |
GameRestartTimerWindow | timerdialog | No | |
GameStarted | boolean | No | false |
GoodFlash | boolean | No | |
HighScore | integer | No | 0 |
LadyFound | boolean | No | |
LeaklessGroup | group | No | |
LifeFlashIndicatorTime | integer | No | 0 |
LifeGoodFlashIndicatorTime | integer | No | 0 |
ListenForHS | boolean | No | false |
lKeyDown | boolean | No | |
MoveEventPoint | location | No | |
NewLine | string | No | |
playerdead | boolean | No | false |
PlayerLives | integer | No | 5 |
PlayerMultiplier | integer | No | 1 |
PlayerScore | integer | No | 0 |
PlayerSpecialMoves | integer | No | 0 |
rKeyDown | boolean | No | |
SheepBlue | real | No | 0.00 |
SheepGreen | real | No | 0.00 |
SheepRed | real | No | 0.00 |
SpecialCounter | integer | No | 0 |
SpecialMoveFlashIndicatorTime | integer | No | 0 |
SwervingPigChance | integer | No | 0 |
SwervingPigs | group | No | |
TempBool | boolean | No | |
TempInt | integer | No | |
TempPoint | location | No | |
tempRand | integer | No | 0 |
TempUnit | unit | No | |
TempX | real | No | |
TempY | real | No | |
TheBoard | leaderboard | No | |
UberSheep | boolean | No | false |