Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-11-18 17:59:52 +0000
committerStijn Buys <ingar@osirion.org>2012-11-18 17:59:52 +0000
commitdf20ff5ad47b1d8a04385956589a7564522258a6 (patch)
tree55112286358004c7f5099c9a78f74cc5113063f3 /src/game/base/game.cc
parent2cd1f55f26f2236641fa2f3b36d9d23b99ca072f (diff)
Support for ownerid() on projectiles and spacemines,
show assassin name in death messages.
Diffstat (limited to 'src/game/base/game.cc')
-rw-r--r--src/game/base/game.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc
index a8a1aa2..2355a9e 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -1012,6 +1012,7 @@ void Game::func_drop(core::Player *player, const std::string &args)
SpaceMine *spacemine = new SpaceMine(weapon);
spacemine->set_color(ship->color());
+ spacemine->set_ownerid(player->id());
spacemine->set_color_second(ship->color_second());
spacemine->set_location(ship->location() + ship->axis().forward() * -1.0f * (ship->radius() + spacemine->radius()));
spacemine->set_axis(ship->axis());
@@ -1283,6 +1284,9 @@ void Game::func_respawn(core::Player *player, std::string const &args)
return;
}
+ // restore armor
+ ship->set_armor(ship->maxarmor());
+
core::Entity *spawn = ship->spawn();
if (!spawn) {
ship->set_zone(Default::zone);
@@ -1300,7 +1304,7 @@ void Game::func_respawn(core::Player *player, std::string const &args)
ship->set_state(core::Entity::Normal);
player->set_view(0);
player->send("^BRespawning");
- }
+ }
}