mirror of
https://github.com/ENSL/NS.git
synced 2024-11-13 00:24:38 +00:00
add lerk flap to +movement
This commit is contained in:
parent
e435bdad29
commit
48da9f7260
1 changed files with 10 additions and 1 deletions
|
@ -380,13 +380,18 @@ void WeaponsResource::UserCmd_MovementOn()
|
||||||
// Find out which weapon we want to trigger
|
// Find out which weapon we want to trigger
|
||||||
AvHUser3 theUser3 = gHUD.GetHUDUser3();
|
AvHUser3 theUser3 = gHUD.GetHUDUser3();
|
||||||
int wID = -1;
|
int wID = -1;
|
||||||
|
bool lerkFlap = false;
|
||||||
switch(theUser3)
|
switch(theUser3)
|
||||||
{
|
{
|
||||||
case AVH_USER3_ALIEN_PLAYER1:
|
case AVH_USER3_ALIEN_PLAYER1:
|
||||||
wID = AVH_ABILITY_LEAP;
|
wID = AVH_ABILITY_LEAP;
|
||||||
break;
|
break;
|
||||||
|
//TODO: Make healspray work with attack2
|
||||||
|
//case AVH_USER3_ALIEN_PLAYER2:
|
||||||
|
// wID = AVH_WEAPON_HEALINGSPRAY;
|
||||||
|
// break;
|
||||||
case AVH_USER3_ALIEN_PLAYER3:
|
case AVH_USER3_ALIEN_PLAYER3:
|
||||||
// TODO: Add flap
|
lerkFlap = true;
|
||||||
break;
|
break;
|
||||||
case AVH_USER3_ALIEN_PLAYER4:
|
case AVH_USER3_ALIEN_PLAYER4:
|
||||||
wID = AVH_WEAPON_BLINK;
|
wID = AVH_WEAPON_BLINK;
|
||||||
|
@ -409,6 +414,10 @@ void WeaponsResource::UserCmd_MovementOn()
|
||||||
IN_Attack2Down();
|
IN_Attack2Down();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (lerkFlap)
|
||||||
|
{
|
||||||
|
IN_Attack2Down();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
Loading…
Reference in a new issue