Name | Type | is_array | initial_value |
AM_CreditLimitVictory | integer | No | |
AM_GameWinner | player | No | PlayerNP |
AM_MaxMonsterSpawn | integer | No | |
AM_MonsterSpawn_IconPath | string | Yes | |
AM_MonsterSpawn_Itemtypes | itemcode | Yes | |
AM_MonsterSpawn_TypeCount | integer | No | |
AM_MonsterSpawn_Unittypes | unitcode | Yes | |
AM_MonsterSpawnTable | hashtable | No | |
AM_Player_VictoryWarningShow | boolean | Yes | |
AM_WeaponSpawn_Count | integer | No | |
AM_WeaponSpawn_Origin | location | Yes | |
AM_WeaponSpawn_SpawnedAmmo | item | Yes | |
AM_WeaponSpawn_SpawnedGun | item | Yes | |
AM_WeaponSpawn_Type | integer | Yes | |
AttackOrderCheck_A | integer | No | |
AttackOrderCheck_P | location | No | |
AttackOrderCheck_r | real | No | |
AttackOrderCheck_r2 | real | No | |
AttackOrderCheck_UG | group | No | |
AttackOrderCheck_unit | unit | No | |
AttackOrderCheck_x | integer | No | |
AutoAttack_key | integer | No | |
AutoAttack_Unit | unit | No | |
b | boolean | No | |
BlinkingLights_Count | integer | No | |
BlinkingLights_Points | location | Yes | |
BlinkingLights_UG | group | No | |
BlinkingLights_Units | unit | Yes | |
BloodDmgTake_P | location | No | |
dest | destructable | No | |
Event_ForestRanger | unit | No | |
Event_ForestRanger_Index | integer | No | |
Event_Scientist_Index | integer | No | |
Explosion_A | integer | No | |
Explosion_Caster | unit | No | |
Explosion_MaxDmg | real | No | |
Explosion_Origin | location | No | |
Explosion_OriginTarget | location | No | |
Explosion_r | real | No | |
Explosion_Range | real | No | |
Explosion_Target | unit | No | |
Explosion_TargetZ | real | No | |
Explosion_Type | integer | No | |
Explosion_UG | group | No | |
Explosion_x | integer | No | |
Explosion_Z | real | No | |
Game_ActivePlayerCount | integer | No | |
Game_AdminPlayer | player | No | Player00 |
Game_BaseCliffLevel | integer | No | |
Game_BaseTerrainHeight | real | No | |
Game_Difficulty | integer | No | |
Game_FlyBoundsBottom | real | No | |
Game_FlyBoundsLeft | real | No | |
Game_FlyBoundsRight | real | No | |
Game_FlyBoundsTop | real | No | |
Game_Mod | integer | No | |
Game_Options_MissleDmgFactor | real | No | |
Game_Options_NoJetpack | boolean | No | |
Game_Over | boolean | No | |
Game_WorldDamage | unit | No | |
Gravity | real | No | 5.00 |
Hash_Main | hashtable | No | |
HealthBar | texttag | No | |
HealthBar2 | texttag | No | |
HealthBar_UG | group | No | |
HealthHash | hashtable | No | |
HealthPGThatCanSee | force | No | |
HealthStatus | real | No | |
IsTriggerOrder | boolean | No | |
item | item | No | |
ItemsToMakeStack | item | Yes | |
ItemsToMakeStackCount | integer | No | |
JetPack_MaxTotalHeight | real | No | |
JetPack_Speed | real | No | |
JetPack_SteerSensivity | real | No | 0.10 |
JetPackOff_unit | unit | No | |
JetPackOff_x | integer | No | |
LadderClimb_Point | location | No | |
LadderClimb_UG | group | No | |
LastClickedPoint | location | Yes | |
LastClickedTime | real | Yes | |
lightning | lightning | No | |
Marine_DmgTake_r | real | No | |
Marine_Fire_Item | item | No | |
Marine_Fire_ItemKey | integer | No | |
Marine_Fire_P | location | No | |
Marine_Fire_P_md | location | No | |
Marine_Fire_Target | location | No | |
Marine_Fire_Target_md | location | No | |
Marine_Fire_Unit | unit | No | |
Marine_Fire_Unit_md | unit | No | |
Marine_Fire_UnitKey | integer | No | |
Marine_Fire_UnitKey_md | integer | No | |
Marine_Fire_WeaponTypeIndex | integer | No | |
Marine_Hash | hashtable | No | |
Marine_Infection_x | integer | No | |
Marine_Nade_Target | location | No | |
Marine_Nade_ThrowDummy | unit | No | |
Marine_Reload_2ndTry | boolean | No | |
Marine_Reload_Item | item | No | |
Marine_Reload_ItemKey | integer | No | |
Marine_Reload_rWait | real | No | |
Marine_Reload_Unit | unit | No | |
Marine_Reload_UnitKey | integer | No | |
Marine_Revive_P | location | No | |
Marine_Revive_Unit | unit | No | |
Marine_Revive_x | integer | No | |
MarineDeath_A | integer | No | |
MarineSetMMSpeed_Factor | real | No | |
MarineSetMMSpeed_Item | item | No | |
MarineSetMMSpeed_r | real | No | |
MarineSetMMSpeed_unit | unit | No | |
MarineSetMMSpeed_x | integer | No | |
Maxplayers | integer | No | 6 |
MB_Marines | multiboard | No | |
MB_ToggleState | integer | No | |
MB_Zombies | multiboard | No | |
Missle_angle | real | No | |
Missle_BulletSource | unit | No | |
Missle_CollisionCheckInterval | integer | No | |
Missle_currheight | real | No | |
Missle_Hash | hashtable | No | |
Missle_key | integer | No | |
Missle_PreviousHitUnit | unit | No | |
Missle_Speed | real | No | |
Missle_unit | unit | No | |
Missle_unitshit | integer | No | |
Missle_utype | unitcode | No | |
Missles_CriticalNumberForFrags | integer | No | 40 |
Monster_Carnivore | unit | No | |
Monster_Carnivore_AllowSpawn | boolean | No | |
Monster_EndBoss | unit | No | |
MonsterType_1st | unitcode | Yes | |
MonsterType_1st_SpawnDist | integer | Yes | |
MonsterType_1stMaxCount | integer | Yes | |
MonsterType_1stSpawnedCount | integer | Yes | |
MonsterType_2nd | unitcode | Yes | |
MonsterType_2nd_SpawnDist | integer | Yes | |
MonsterType_2nd_X1stFirst | integer | Yes | |
MonsterType_2ndMaxCount | integer | Yes | |
MonsterType_2ndSpawnedCount | integer | Yes | |
MonsterType_3rd | unitcode | Yes | |
MonsterType_3rd_SpawnDist | integer | Yes | |
MonsterType_3rd_X2ndFirst | integer | Yes | |
MonsterType_3rdMaxCount | integer | Yes | |
MonsterType_3rdSpawnedCount | integer | Yes | |
MonsterType_4th | unitcode | Yes | |
MonsterType_4th_SpawnDist | integer | Yes | |
MonsterType_4th_X4rdFirst | integer | Yes | |
MonsterType_4thMaxCount | integer | Yes | |
MonsterType_4thSpawnedCount | integer | Yes | |
MonsterType_TypeCount | integer | Yes | |
MonsterType_WaveCount | integer | No | |
MonsterType_WaveIndex | integer | No | |
MonsterType_WaveMsg | string | Yes | |
MouseTimer | timer | No | |
Music_CurrentTrackIndex | integer | No | |
Music_PlayerOn | boolean | Yes | |
Music_RndSoundList | sound | Yes | |
Music_RndSoundList_Count | integer | No | |
Music_Soundlist | sound | Yes | |
Music_Soundlist_Count | integer | No | |
Music_Soundlist_Duration | real | Yes | |
Music_Soundlist_Pitch | real | Yes | |
Music_TimePassed | real | No | |
NPCSmartOrder_AllowFire | boolean | No | |
NPCSmartOrder_key | integer | No | |
NPCSmartOrder_P | location | No | |
NPCSmartOrder_r | real | No | |
NPCSmartOrder_r2 | real | No | |
NPCSmartOrder_Target | location | No | |
P | location | No | |
P2 | location | No | |
P3 | location | No | |
P_BloodUnitDeath | location | No | |
P_PlaceStuff | location | No | |
P_SoundPlay | location | No | |
P_ZombieEnterMap | location | No | |
PG | force | No | |
player | player | No | |
Player_AllowSelectClass | boolean | Yes | |
Player_AutoAttackDummy | unit | Yes | |
Player_AutoAttackON | boolean | Yes | |
Player_AutouseMG | boolean | Yes | |
Player_Bounty | integer | Yes | |
Player_CamDistance | real | Yes | |
Player_CamLock | boolean | Yes | |
Player_CamSet | player | No | |
Player_CamSet_r | real | No | |
Player_CamSetx | integer | No | |
Player_CamSetx2 | integer | No | |
Player_ColorCode | string | Yes | |
Player_JetPack_Steer_DownON | boolean | Yes | |
Player_JetPack_Steer_LeftON | boolean | Yes | |
Player_JetPack_Steer_RightON | boolean | Yes | |
Player_JetPack_Steer_UpON | boolean | Yes | |
Player_Kills | integer | Yes | |
Player_Marine | unit | Yes | |
Player_Monsterowner | player | No | Player11 |
Player_MouseDownAfterDblClick | boolean | Yes | |
Player_MouseDownCount | integer | Yes | |
Player_MouseUpCount | integer | Yes | |
Player_NPCAllies | player | No | Player09 |
Player_SelectedUnit | unit | Yes | |
Player_TutorialStep | integer | Yes | |
PowerPush_AngleXY | real | No | |
PowerPush_Key | integer | No | |
PowerPush_P | location | No | |
PowerPush_PowerXY | real | No | |
PowerPush_PowerZ | real | No | |
PowerPush_r | real | No | |
PowerPush_r2 | real | No | |
PowerPush_Target | location | No | |
PowerPush_Unit | unit | No | |
r | real | No | |
r2 | real | No | |
r2_md | real | No | |
r3 | real | No | |
r4 | real | No | |
r5 | real | No | |
r6 | real | No | |
r7 | real | No | |
r_md | real | No | |
r_x | real | No | |
r_x2 | real | No | |
r_y | real | No | |
r_y2 | real | No | |
r_ZombieEnterMap | real | No | |
RankNameFull | string | Yes | |
RankShortcut | string | Yes | |
RankXPReq | integer | Yes | |
region | rect | No | |
s | string | No | |
Selection_unit | unit | No | |
SentryBotOrigin | location | Yes | |
SMG_Ammo | integer | Yes | |
SMG_Count | integer | No | |
SMG_DefaultAngle | real | Yes | |
SMG_Float | texttag | Yes | |
SMG_FloatCreated | boolean | Yes | |
SMG_FloatUpdateA | integer | No | |
SMG_Heat | integer | Yes | |
SMG_HeatCritical | integer | No | |
SMG_Unit | unit | Yes | |
Sound_Hash | hashtable | No | |
StackableItem_Charges | integer | No | |
StackableItem_Count | integer | No | |
StackableItem_intA | integer | No | |
StackableItem_Name | string | No | |
StackableItem_StackCount | integer | Yes | |
StackableItem_Type | integer | No | |
StackableItem_TypeInventory | itemcode | Yes | |
StackableItem_TypePowerUp | itemcode | Yes | |
StackableItem_x | integer | No | |
StateString | string | No | |
Tank_ItemsDelivered | integer | No | |
Tank_ItemsDropped | integer | No | |
UG | group | No | |
UG2 | group | No | |
UG_AirstrikeCasters | group | No | |
UG_AliveMarines | group | No | |
UG_AliveZombies | group | No | |
UG_BlackHole | group | No | |
UG_Burning | group | No | |
UG_ChainsawCooldownUnits | group | No | |
UG_CrawlUpMonsters | group | No | |
UG_DeadUnits | group | No | |
UG_EnemyAliveMarines | group | Yes | |
UG_FireWhenAngleOk | group | No | |
UG_FlashlightUnits | group | No | |
UG_FlyingAdjustHeight | group | No | |
UG_Heretics | group | No | |
UG_md | group | No | |
UG_Missles | group | No | |
UG_Monster_AbomBlow | group | No | |
UG_MonsterSpellCooldown | group | No | |
UG_OrderStop | group | No | |
UG_RecentlyClimbed | group | No | |
UG_RemoveInfection | group | No | |
UG_RemoveLightning | group | No | |
UG_SentryBotTargets | group | Yes | |
UG_SpawnBullets | group | No | |
UG_Stampede | group | No | |
UG_SuturedCadavreBlow | group | No | |
UG_TutorialVillagers | group | No | |
UG_UnitsThatAreAttacking | group | No | |
UG_Velocity | group | No | |
UG_ZombiesAttackOrder | group | No | |
unit | unit | No | |
unit2 | unit | No | |
unit_Climb | unit | No | |
unit_md | unit | No | |
unittype | unitcode | No | |
Velocity_IsDroppedOffGhoul | boolean | No | |
Velocity_Maximum | real | No | 100.00 |
Velocity_Minimum | real | No | -100.00 |
Velocity_MoveOffObstacle | boolean | No | |
vX | real | No | |
vY | real | No | |
vZ | real | No | |
Wave_WeaponDropPoint | location | No | |
WeaponAquire_Item | item | No | |
WeaponAquire_Unit | unit | No | |
WeaponAquire_UnitKey | integer | No | |
WeaponAquire_x | integer | No | |
WeaponData_Count | integer | No | |
WeaponData_GunSpawnCount | integer | No | |
WeaponData_GunSpawnList | integer | Yes | |
WeaponData_Hash | hashtable | No | |
WeaponData_ItemType | itemcode | Yes | |
WeaponData_ItemTypeAmmo | itemcode | Yes | |
WeaponData_ItemTypeAmmoAlt | itemcode | Yes | |
WeaponData_ItemTypeAmmoAltStck | itemcode | Yes | |
WeaponData_ItemTypeAmmoStck | itemcode | Yes | |
WeaponData_MissleType | unitcode | Yes | |
WeaponData_WeightSlowFactor | real | No | |
WeaponData_WeightSlowFactorEF | real | No | |
Weather_FilterIndex | real | No | |
x | integer | No | |
x2 | integer | No | |
x3 | integer | No | |
x4 | integer | No | |
x5 | integer | No | |
x_EnterStatMG | integer | No | |
x_md | integer | No | |
x_SoundPlay | integer | No | |
x_SoundPlay2 | integer | No | |
x_ZombieEnterMap | integer | No | |
y | integer | No | |
z1 | real | No | |
z2 | real | No |
function Trig_doubleclickshoot_onMouseDown_Copy_Conditions takes nothing returns boolean
if ( not ( BlzGetTriggerPlayerMouseButton() == MOUSE_BUTTON_TYPE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseDown_Copy_Func012Func001Func001C takes integer x returns boolean
if ( not ( IsUnitInTransportBJ(udg_Player_Marine[x], gg_unit_h004_0005) == true ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseDown_Copy_Func012Func001Func005C takes unit firingUnit returns boolean
if ( not ( GetUnitCurrentOrder(firingUnit) != String2OrderIdBJ("stop") ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseDown_Copy_Func012Func001Func018Func002C takes integer x returns boolean
if ( not ( IsUnitInTransportBJ(udg_Player_Marine[x], gg_unit_h004_0005) == true ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseDown_Copy_Func012Func001Func018C takes integer x returns boolean
if ( not ( udg_Player_MouseUpCount[x] < udg_Player_MouseDownCount[x] ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseDown_Copy_Func012Func001C takes integer x, real r, location marine_Fire_Target_md returns boolean
if ( not ( RAbsBJ(( r - udg_LastClickedTime[x] )) < 1.00 ) ) then
return false
endif
if ( not ( RAbsBJ(( GetLocationX(marine_Fire_Target_md) - GetLocationX(udg_LastClickedPoint[x]) )) < 100.00 ) ) then
return false
endif
if ( not ( RAbsBJ(( GetLocationY(marine_Fire_Target_md) - GetLocationY(udg_LastClickedPoint[x]) )) < 100.00 ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseDown_Copy_Func012Func004C takes location marine_Fire_Target_md returns boolean
if ( ( GetLocationX(marine_Fire_Target_md) != 0.00 ) ) then
return true
endif
if ( ( GetLocationY(marine_Fire_Target_md) != 0.00 ) ) then
return true
endif
return false
endfunction
function Trig_doubleclickshoot_onMouseDown_Copy_Func012Func005Func002C takes unit currentSelectedUnit returns boolean
if ( not ( GetUnitTypeId(currentSelectedUnit) != 'h00B' ) ) then
return false
endif
if ( not ( GetUnitTypeId(currentSelectedUnit) != 'h00A' ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseDown_Copy_Func012Func005C takes unit currentSelectedUnit returns boolean
if ( ( currentSelectedUnit == null ) ) then
return true
endif
if ( Trig_doubleclickshoot_onMouseDown_Copy_Func012Func005Func002C(currentSelectedUnit) ) then
return true
endif
return false
endfunction
function Trig_doubleclickshoot_onMouseDown_Copy_Func012C takes integer x, location marine_Fire_Target_md, unit currentSelectedUnit returns boolean
if ( not ( UnitHasBuffBJ(udg_Player_Marine[x], 'BSTN') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(udg_Player_Marine[x], 'BPSE') == false ) ) then
return false
endif
if ( not Trig_doubleclickshoot_onMouseDown_Copy_Func012Func004C(marine_Fire_Target_md) ) then
return false
endif
if ( not Trig_doubleclickshoot_onMouseDown_Copy_Func012Func005C(currentSelectedUnit) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseDown_Copy_Actions takes nothing returns nothing
local player tempplayer
local group UG_md
local unit firingUnit
local unit currentSelectedUnit
local integer x_md
local integer marine_hash_key
local location marine_Fire_Target_md
local location marine_origin_md
local real r1
local real r2
local real gameTimeElapsed_md
set x_md = GetConvertedPlayerId(GetTriggerPlayer())
set udg_Player_MouseDownCount[x_md] = 1
set udg_Player_MouseUpCount[x_md] = 0
set UG_md = GetUnitsSelectedAll(GetTriggerPlayer())
set currentSelectedUnit = GroupPickRandomUnit(UG_md)
call DestroyGroup(UG_md)
set marine_Fire_Target_md = BlzGetTriggerPlayerMousePosition()
set gameTimeElapsed_md = TimerGetElapsed(udg_MouseTimer)
if ( Trig_doubleclickshoot_onMouseDown_Copy_Func012C(x_md, marine_Fire_Target_md, currentSelectedUnit) ) then
if ( Trig_doubleclickshoot_onMouseDown_Copy_Func012Func001C(x_md, gameTimeElapsed_md, marine_Fire_Target_md) ) then
if ( Trig_doubleclickshoot_onMouseDown_Copy_Func012Func001Func001C(x_md) ) then
set firingUnit = gg_unit_h004_0005
else
set firingUnit = udg_Player_Marine[x_md]
endif
set marine_hash_key = GetHandleId(firingUnit)
set marine_origin_md = GetUnitLoc(firingUnit)
// Stehenbleiben zum schießen
if ( Trig_doubleclickshoot_onMouseDown_Copy_Func012Func001Func005C(firingUnit) ) then
call SetUnitPositionLocFacingLocBJ( firingUnit, marine_origin_md, marine_Fire_Target_md )
call GroupAddUnitSimple( firingUnit, udg_UG_OrderStop )
call EnableTrigger( gg_trg_Marine_Order_Stop )
else
endif
// Shoot!
call SetUnitFacingToFaceLocTimed( firingUnit, marine_Fire_Target_md, 0 )
set r1 = AngleBetweenPoints(marine_origin_md, marine_Fire_Target_md)
set r2 = DistanceBetweenPoints(marine_origin_md, marine_Fire_Target_md)
call SaveRealBJ( r1, 37, marine_hash_key, udg_Marine_Hash )
call SaveRealBJ( r2, 38, marine_hash_key, udg_Marine_Hash )
call GroupAddUnitSimple( firingUnit, udg_UG_FireWhenAngleOk )
call EnableTrigger( gg_trg_Marine_FireWhenAngleOk )
call RemoveLocation(marine_origin_md)
// We need this check because this trigger is executed async, while the player could already have lifted his mouse button
call TriggerSleepAction( 0.20 )
if ( Trig_doubleclickshoot_onMouseDown_Copy_Func012Func001Func018C(x_md) ) then
set udg_Player_MouseDownAfterDblClick[x_md] = true
if ( Trig_doubleclickshoot_onMouseDown_Copy_Func012Func001Func018Func002C(x_md) ) then
set firingUnit = gg_unit_h004_0005
else
set firingUnit = udg_Player_Marine[x_md]
endif
call GroupAddUnitSimple( firingUnit, udg_UG_FireWhenAngleOk )
call EnableTrigger( gg_trg_Marine_FireWhenAngleOk )
else
endif
else
endif
else
endif
call RemoveLocation(udg_LastClickedPoint[x_md])
call RemoveLocation(marine_Fire_Target_md)
set udg_LastClickedPoint[x_md] = BlzGetTriggerPlayerMousePosition()
set udg_LastClickedTime[x_md] = TimerGetElapsed(udg_MouseTimer)
endfunction
//===========================================================================
function InitTrig_doubleclickshoot_onMouseDown_Code takes nothing returns nothing
set gg_trg_doubleclickshoot_onMouseDown_Code = CreateTrigger( )
call TriggerAddCondition( gg_trg_doubleclickshoot_onMouseDown_Code, Condition( function Trig_doubleclickshoot_onMouseDown_Copy_Conditions ) )
call TriggerAddAction( gg_trg_doubleclickshoot_onMouseDown_Code, function Trig_doubleclickshoot_onMouseDown_Copy_Actions )
endfunction
function Trig_doubleclickshoot_onMouseMove_Code_Conditions takes nothing returns boolean
if ( not ( udg_Player_MouseDownAfterDblClick[GetConvertedPlayerId(GetTriggerPlayer())] == true ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseMove_Code_Func003C takes integer x_md returns boolean
if ( not ( IsUnitInTransportBJ(udg_Player_Marine[x_md], gg_unit_h004_0005) == true ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseMove_Code_Func006C takes unit firingUnit returns boolean
if ( not ( IsUnitInGroup(firingUnit, udg_UG_ChainsawCooldownUnits) == false ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseMove_Code_Actions takes nothing returns nothing
local unit firingUnit
local integer x_md
local integer marine_hash_key
local location marine_Fire_Target_md
local location marine_origin_md
local real r1
local real r2
set x_md = GetConvertedPlayerId(GetTriggerPlayer())
if ( Trig_doubleclickshoot_onMouseMove_Code_Func003C(x_md) ) then
set firingUnit = gg_unit_h004_0005
else
set firingUnit = udg_Player_Marine[x_md]
endif
set marine_origin_md = GetUnitLoc(firingUnit)
set marine_Fire_Target_md = BlzGetTriggerPlayerMousePosition()
if ( Trig_doubleclickshoot_onMouseMove_Code_Func006C(firingUnit) ) then
call SetUnitFacingToFaceLocTimed( firingUnit, marine_Fire_Target_md, 0 )
else
endif
set marine_hash_key = GetHandleId(firingUnit)
set r1 = AngleBetweenPoints(marine_origin_md, marine_Fire_Target_md)
set r2 = DistanceBetweenPoints(marine_origin_md, marine_Fire_Target_md)
call SaveRealBJ( r1, 37, marine_hash_key, udg_Marine_Hash )
call SaveRealBJ( r2, 38, marine_hash_key, udg_Marine_Hash )
call RemoveLocation(marine_origin_md)
call RemoveLocation(marine_Fire_Target_md)
endfunction
//===========================================================================
function InitTrig_doubleclickshoot_onMouseMove_Code takes nothing returns nothing
set gg_trg_doubleclickshoot_onMouseMove_Code = CreateTrigger( )
call TriggerAddCondition( gg_trg_doubleclickshoot_onMouseMove_Code, Condition( function Trig_doubleclickshoot_onMouseMove_Code_Conditions ) )
call TriggerAddAction( gg_trg_doubleclickshoot_onMouseMove_Code, function Trig_doubleclickshoot_onMouseMove_Code_Actions )
endfunction
function Trig_doubleclickshoot_onMouseUp_Code_Func004C takes integer x_md returns boolean
if ( not ( udg_Player_MouseUpCount[x_md] >= udg_Player_MouseDownCount[x_md] ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseUp_Code_Func007C takes integer x_md returns boolean
if ( not ( udg_Player_MouseUpCount[x_md] >= udg_Player_MouseDownCount[x_md] ) ) then
return false
endif
return true
endfunction
function Trig_doubleclickshoot_onMouseUp_Code_Actions takes nothing returns nothing
local integer x_md
set x_md = GetConvertedPlayerId(GetTriggerPlayer())
set udg_Player_MouseUpCount[x_md] = ( udg_Player_MouseUpCount[x_md] + 1 )
if ( Trig_doubleclickshoot_onMouseUp_Code_Func004C(x_md) ) then
set udg_Player_MouseDownAfterDblClick[x_md] = false
else
endif
call TriggerSleepAction( 0.05 )
set x_md = x_md
if ( Trig_doubleclickshoot_onMouseUp_Code_Func007C(x_md) ) then
set udg_Player_MouseDownAfterDblClick[x_md] = false
else
endif
endfunction
//===========================================================================
function InitTrig_doubleclickshoot_onMouseUp_Code takes nothing returns nothing
set gg_trg_doubleclickshoot_onMouseUp_Code = CreateTrigger( )
call TriggerAddAction( gg_trg_doubleclickshoot_onMouseUp_Code, function Trig_doubleclickshoot_onMouseUp_Code_Actions )
endfunction