Cap minimap zoom like in sidemods. Removes need for a CVar.
This commit is contained in:
parent
a483d45fca
commit
eb3cae5d43
8 changed files with 13 additions and 28 deletions
|
|
@ -15,11 +15,7 @@ Class Omnisight : Inventory
|
|||
Actor rt = toucher;
|
||||
if ( toucher.player ) rt = toucher.player.mo;
|
||||
if ( rt.player == players[consoleplayer] )
|
||||
{
|
||||
rt.A_StartSound("powerup/omnisight",CHAN_ITEMEXTRA,CHANF_OVERLAP);
|
||||
// automatically zoom out so the player can know how far this goes
|
||||
CVar.FindCVar('swwm_mm_zoom').SetFloat(2.);
|
||||
}
|
||||
if ( rt is 'Demolitionist' )
|
||||
Demolitionist(rt).lastbump *= 1.1;
|
||||
level.allmap = true;
|
||||
|
|
@ -35,8 +31,6 @@ Class Omnisight : Inventory
|
|||
{
|
||||
Console.Printf(StringTable.Localize("$D_OMNISHARE"),rt.player.GetUserName());
|
||||
players[i].mo.A_StartSound("powerup/omnisight",CHAN_ITEMEXTRA,CHANF_OVERLAP);
|
||||
// automatically zoom out so the player can know how far this goes
|
||||
CVar.FindCVar('swwm_mm_zoom').SetFloat(2.);
|
||||
}
|
||||
if ( players[i].mo is 'Demolitionist' )
|
||||
Demolitionist(players[i].mo).lastbump *= 1.1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue