Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Commit

Permalink
fixed console spam
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsonofharry committed May 28, 2019
1 parent 66ca9ec commit be456cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/script/ai_monster_base.script
Original file line number Diff line number Diff line change
Expand Up @@ -2280,6 +2280,8 @@ void monster_base::monster_randomize() {
sys.setSpawnArg( "angle", getAngles() );
entity monster = sys.spawn( classname );
sys.trigger( monster );

// wait until removed by own offspring
while ( 1 ) {
sys.waitFrame();
}
Expand Down
9 changes: 0 additions & 9 deletions src/script/random_item.script
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,7 @@ void random_item::init() {

// spinlock until player arrives
player_base p1 = $player1;
entity ent = $null_entity;
vector pos2 = getOrigin() + '0 0 4';
vector target;
while ( distanceTo( p1 ) > 300 ) {
target = p1.getOrigin() + '0 0 8';
sys.trace( pos2, target, '-1 -1 0', '1 1 8', MASK_PLAYERSOLID, self );
ent = sys.getTraceEntity();
if ( ent == p1 ) {
break;
}
waitFrame();
}

Expand Down

0 comments on commit be456cd

Please sign in to comment.