Annoying bug when applying spawn protection
Posted: Wed Jul 09, 2008 10:09 am
Hello again,
I have added spawn protection (player starts with battle suit) to my mod and although it works fine
their is a problem around 50% of the time if you kill the player whilst he has the battle suit sometimes
it drops as a black box instead of the actual battle suit icon/graphic.
In g_client/client_spawn() I add the following
Should I be doing something else also? Like I say, this problem only occurs sometimes, often I can drop the battle suit and it displays fine.
I have added spawn protection (player starts with battle suit) to my mod and although it works fine
their is a problem around 50% of the time if you kill the player whilst he has the battle suit sometimes
it drops as a black box instead of the actual battle suit icon/graphic.
In g_client/client_spawn() I add the following
Code: Select all
client->ps.powerups[PW_BATTLESUIT] = 3000;