Well I have some problems with my zombie plague are the following:
I made such a mode is called Mode Allied
Now I want the player esque "Special" in this way is that as a nemesis, especially with a knife .. and did this:
PHP Code:
new const model_vknife_allied [] = ( "models / zombie_plague / v_acha.mdl")
new const model_pknife_allied [] = ( "models / zombie_plague / p_acha.mdl")
Below I put this:
PHP Code:
/ / Custom weapon models
engfunc (EngFunc_PrecacheModel, model_vknife_human)
engfunc (EngFunc_PrecacheModel, model_vknife_nemesis)
engfunc (EngFunc_PrecacheModel, model_vknife_allied)
engfunc (EngFunc_PrecacheModel, model_pknife_allied)
Then I put this:
PHP Code:
CSW_KNIFE case: / / Custom knife models
(
if (g_zombie [id] & &! g_newround & &! g_endround)
(
if (g_nemesis [id]) / / Nemesis
(
set_pev (id, pev_viewmodel2, model_vknife_nemesis)
set_pev (id, pev_weaponmodel2, "")
)
if (g_allied [id])
(
set_pev (id, pev_viewmodel2, model_vknife_allied)
set_pev (id, pev_weaponmodel2, "models / p_knife.mdl")
I understand this is just the p and v would see, but I do not recognize the p is only the v .. Bone is the only player not others ..
To all this I also add a special sound to this knife Acha, "which sounds no different to the default one zombie in my case it would be this:
PHP Code:
new const zombie_miss_slash [] [] = ( "zombie_plague/claw_miss1.wav")
new const zombie_miss_wall [] [] = ( "zombie_plague/claw_miss1.wav")
new const zombie_hit_normal [] [] = ( "zombie_plague/claw_strike1.wav")
new const zombie_hit_stab [] [] = ( "zombie_plague/claw_strike2.wav")
In lieu of that I want for example:
PHP Code:
new const zombie_mimodo_slash [] [] = ( "zombie_plague/claw_miss1.wav")
new const zombie_mimodo_wall [] [] = ( "zombie_plague/claw_miss1.wav")
new const zombie_mimodo_normal [] [] = ( "zombie_plague/claw_strike1.wav")
new const zombie_mimodo_stab [] [] = ( "zombie_plague/claw_strike2.wav")
Now the problem is no pattern to follow as in any of 2 ways ..
-------------------------------------------------- ----------------------
Leaving this aside also wanted to add my menu .. choice in the main menu option which says "Options" that will lead you to a submenu for example where to put the game up duller place rain or fog can be anything .. That seems very interesting ..
-------------------------------------------------- -----------------------
I also did a walk around so it compiles perfect but rather in launching ala mode simply nothing happens because alguen knows? I leave here:
PHP Code:
/ / Leon Mode
g_survround = true
g_leonround = true
g_lastmode = MODE_SURVIVOR
/ / Choose randomly player?
if (mode == MODE_NONE)
id = fnGetRandomAlive (random_num (1, iPlayersnum))
static surv2
surv2 = fnGetRandomAlive (random_num (1, iPlayersnum))
/ / Same player arent
if (id == surv2)
surv2 = fnGetRandomAlive (random_num (1, iPlayersnum))
/ / Remember our id for calling forward later
id = forward_id
/ / Turn player into a survivor
g_leon [id] = true
humanme (id, 1)
humanme (surv2, 1)
copy (g_playermodel [id], sizeof g_playermodel [] - 1, model_leon [random_num (0, sizeof model_leon -1)])
copy (g_playermodel [surv2], sizeof g_playermodel [] - 1, model_leon2 [random_num (0, sizeof model_leon2 -1)])
fm_strip_user_weapons (id)
fm_give_item (id, "weapon_knife)
fm_give_item (id, "weapon_m4a1)
fm_strip_user_weapons (surv2)
fm_give_item (surv2, "weapon_knife)
fm_give_item (surv2, "weapon_m4a1)
fm_give_item (surv2, "weapon_hegrenade)
if (get_pcvar_num (cvar_leonaura))
set_pev (id, pev_effects, ENP (id, pev_effects) | EF_BRIGHTLIGHT)
fm_set_user_health (id, get_pcvar_num (cvar_leonbasehp))
/ / Turn the remaining players into zombies
for (id = 1; id <= g_maxplayers, id + +)
(
/ / Not alive
if (! is_user_alive (id))
continue;
/ / Already a zombie or Survivor
if (g_survivor [id] | | g_zombie [id])
continue;
/ / Turn into a zombie
zombieme (id, 0, 1, 0)
)
The idea of what is supposed to make the way would be "a nemesis," "Zombies" and "A survivor 1" and "Survivor 2" each with its special model pongamosle Jill and Leon ..
I thank you very much sum up what I would greatly appreciate more than the slightest help ..