but does not have that line in the source of national gunz:
bool IsMenuVisible() { return m_bMenuVisible; }
Printable View
but does not have that line in the source of national gunz:
bool IsMenuVisible() { return m_bMenuVisible; }
yes have.! no have in Zgame.cpp, have in ZCombatInterface.h
http://i.imgur.com/ZO4ODju.png
where do I add this code?
Quote:
//No es necesario que sea agregado es opcional.
int nItemMelee = 0;
int nItemPistol = 0;
int nItemSecun = 0;
//Apartir de aqui se generan los items aleatorios, es un código básico de c++,
// luego lo modificaré para que esto se conecte con XML o SQL, pero por ahora usen este
int aleatorio = rand()%3;
if(aleatorio == 0)
{
nItemMelee = 7;
nItemPistol= 505005;
nItemSecun= 5019;
}
if(aleatorio == 1)
{
nItemMelee = 502013;
nItemPistol= 504006;
nItemSecun= 506009;
}
if(aleatorio == 2)
{
nItemMelee = 18;
nItemPistol = 506007;
nItemSecun=6006; //braker 8
}
pCharacter->GetItems()->EquipItem(MMCIP_PRIMARY, nItemPistol); // Rocket
pCharacter->ChangeWeapon(MMCIP_PRIMARY);
pCharacter->ChangeWeapon(MMCIP_PRIMARY);
pCharacter->GetItems()->EquipItem(MMCIP_SECONDARY, nItemSecun); // grenade
pCharacter->ChangeWeapon(MMCIP_SECONDARY);
pCharacter->GetItems()->EquipItem(MMCIP_MELEE, nItemMelee); // dagger
pCharacter->ChangeWeapon(MMCIP_MELEE);
pCharacter->ChangeWeapon(MMCIP_CUSTOM1);
pCharacter->ChangeWeapon(MMCIP_CUSTOM2);
pCharacter->InitItemBullet();
}
/*Aqui esta el sistema logico para poder alternar la entrega de armas, en este caso el sistema pide que se genere
un numero aleatorio entre 0 y 2 (Rango: 0,1,2) es decir tiene 3 posibilidades, con esto generamos las condiciones
en las cuales se configura el ID del arma o item que se le entregará al personaje.
*/
but it serves to exchange guns do not?
xml and is equal to all other modes? put in messages.xml, gametype.xml and channelrule.xml?
Let's just say this is horribly coded and horribly executed, effectively making this a complete waste of time.
//Buscar esta linea:
int m_nMagazine;
//pegar debajo:
int m_nGunLevel;
http://i.imgur.com/4ivBMVj.png
int m_nMagazine; //not have this code in zcombatinterface.h
where do I add this code?
int m_nGunLevel;
http://i.imgur.com/rjrMXLi.png
help :\ where I add the code: int m_nGunLevel;?
m_nMagazine has no e_e