Topic: Adding new Pickable entities
trying to add an ammo crate to the game I am facing a problem and can't figure out how to solve this. I added the crate into the code
##network.py
Powerups = ["HEALTH", "ARMOR", "WEAPON", "NINJA","AMMO"]
......................
##content.py
[...]
container.pickups.Add(Pickup("ammo"))
[...]
container.sprites.Add(Sprite("pickup_armor", set_game, 12,2,2,2))
.................
/************Pickup.cpp*************/
case POWERUP_AMMO:
if(pChr->IncreaseAmmo(3))
{
GameServer()->CreateSound(m_Pos, SOUND_WEAPON_SWITCH);
RespawnTime = g_pData->m_aPickups[m_Type].m_Respawntime;
}
break;
.................
But I just can't see where in the game it has been put, I don't even think it handles my ammo crate.
So has someone ever created a new pickable entity and used it?
If yes a description the method would be welcome ^^
Thanks.