diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-11-18 14:24:34 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-11-18 14:24:34 +0000 |
| commit | d4d1691fea007b04ad21686e8622efbbe53e9768 (patch) | |
| tree | 5f7fcde7a4a3ef5efb4c9c09835ba561e6b2337e /src/game/server/srv_common.cpp | |
| parent | dda8f6b33ee05acdf23883c91a0897a464b84061 (diff) | |
| download | zcatch-d4d1691fea007b04ad21686e8622efbbe53e9768.tar.gz zcatch-d4d1691fea007b04ad21686e8622efbbe53e9768.zip | |
fixed so that the skins are sent over correctly and that team color overrides everything
Diffstat (limited to 'src/game/server/srv_common.cpp')
| -rw-r--r-- | src/game/server/srv_common.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/game/server/srv_common.cpp b/src/game/server/srv_common.cpp index 638d31c6..c97433d3 100644 --- a/src/game/server/srv_common.cpp +++ b/src/game/server/srv_common.cpp @@ -110,6 +110,23 @@ void gameobject::post_reset() } } + + +void gameobject::on_player_info_change(class player *p) +{ + const int team_colors[2] = {54090, 10998628}; + if(is_teamplay) + { + if(p->team >= 0 || p->team <= 1) + { + p->use_custom_color = 1; + p->color_body = team_colors[p->team]; + p->color_feet = team_colors[p->team]; + } + } +} + + void gameobject::on_player_death(class player *victim, class player *killer, int weapon) { // do scoreing |