Wpadłem na pomysł stworzenia nowej klasy zombie - calemelona
Zrobiłem ją na podstawie vampira, abym mógł ustawic mu odpowiednia ilosc HP za zarazenie.
Jest to normalny zombie, tyle, że ma wygląd normalnego człowieka.
Niestety ludzie na moim serwie już go rozpracowali i moje pytanie:
Czy dałoby się ustawić tak, żeby człowiek który wybrał klasę kameleona, po zamienieniu w zombiaka miał losowy wygląd któregoś z rodzajów człowieka?
Tutaj .SMA kameleona:
/*================================================================================ ----------------------------------- -*- [ZP] Default Zombie Classes -*- ----------------------------------- ~~~~~~~~~~~~~~~ - Description - ~~~~~~~~~~~~~~~ This plugin adds the default zombie classes to Zombie Plague. Feel free to modify their attributes to your liking. Note: If zombie classes are disabled, the first registered class will be used for all players (by default, Classic Zombie). ================================================================================*/ #include <amxmodx> #include <fakemeta> #include <zombieplague> /*================================================================================ [Plugin Customization] =================================================================================*/ // Leech Zombie Attributes new const zclass5_name[] = { "Kameleon" } new const zclass5_info[] = { "HP-- Spd- Knock- HumanOutfit+" } new const zclass5_model[] = { "guerilla" } new const zclass5_clawmodel[] = { "v_knife.mdl" } const zclass5_health = 500 const zclass5_speed = 220 const Float:zclass5_gravity = 1.0 const Float:zclass5_knockback = 0.5 const zclass5_infecthp = 200 // extra hp for infections /*============================================================================*/ // Class IDs new g_zclass_leech // Zombie Classes MUST be registered on plugin_precache public plugin_precache() { register_plugin("[ZP] Default Zombie Classes", "4.06", "MeRcyLeZZ") // Register all classes g_zclass_leech = zp_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass5_speed, zclass5_gravity, zclass5_knockback) } // User Infected forward public zp_user_infected_post(id, infector) { // If attacker is a leech zombie, gets extra hp if (zp_get_user_zombie_class(infector) == g_zclass_leech) set_pev(infector, pev_health, float(pev(infector, pev_health) + zclass5_infecthp)) }
Linijka z wyglądem: new const zclass5_model[] = { "guerilla" }
Tutaj lista all wyglądów z których miałby być wybierany losowo jeden:
(wszystkie po wpisaniu w miejsce guerilla będą działać)
arctic
gign
gsg9
guerilla
leet
sas
terror
urban
Z góry dziękuje!
Pozdrawiam,
Plax