mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-04-28 23:15:23 +00:00
Flag fix
Reset flag velocity on pickup
This commit is contained in:
parent
43875c56dc
commit
b44b5444bd
3 changed files with 3 additions and 0 deletions
|
|
@ -495,6 +495,7 @@ function CTFGame::playerTouchEnemyFlag(%game, %player, %flag)
|
||||||
%flag.hide(true);
|
%flag.hide(true);
|
||||||
%flag.startFade(0, 0, false);
|
%flag.startFade(0, 0, false);
|
||||||
%flag.isHome = false;
|
%flag.isHome = false;
|
||||||
|
%flag.setVelocity("0 0 0");
|
||||||
if(%flag.stand)
|
if(%flag.stand)
|
||||||
%flag.stand.getDataBlock().onFlagTaken(%flag.stand);//animate, if exterior stand
|
%flag.stand.getDataBlock().onFlagTaken(%flag.stand);//animate, if exterior stand
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1915,6 +1915,7 @@ function LakRabbitGame::playerTouchFlag(%game, %player, %flag)
|
||||||
setTargetAlwaysVisMask(%target, 0x7);
|
setTargetAlwaysVisMask(%target, 0x7);
|
||||||
}
|
}
|
||||||
%flag.isHome = false;
|
%flag.isHome = false;
|
||||||
|
%flag.setVelocity("0 0 0");
|
||||||
$flagStatus = %client.name;
|
$flagStatus = %client.name;
|
||||||
|
|
||||||
// borlak -- points for MA flag grabs
|
// borlak -- points for MA flag grabs
|
||||||
|
|
|
||||||
|
|
@ -722,6 +722,7 @@ function SCtFGame::playerTouchEnemyFlag(%game, %player, %flag)
|
||||||
%flag.hide(true);
|
%flag.hide(true);
|
||||||
%flag.startFade(0, 0, false);
|
%flag.startFade(0, 0, false);
|
||||||
%flag.isHome = false;
|
%flag.isHome = false;
|
||||||
|
%flag.setVelocity("0 0 0");
|
||||||
if(%flag.stand)
|
if(%flag.stand)
|
||||||
%flag.stand.getDataBlock().onFlagTaken(%flag.stand);//animate, if exterior stand
|
%flag.stand.getDataBlock().onFlagTaken(%flag.stand);//animate, if exterior stand
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue