lydjjlyd
|
分享:
▲
▼
可我不知道加在哪?这是那段声音源码: public use_invisible(id) { if(!is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_nemesis(id) || zp_get_user_zombie_class(id) != g_zclass_ghost ) return PLUGIN_HANDLED
if(!g_can_invis[id]) { if(!g_on_invis[id]) client_print(id,print_center,"隐形技能冷却中!") return PLUGIN_HANDLED } if(pev(id, pev_health) > get_pcvar_float(cvar_hp) && get_user_weapon(id) == CSW_KNIFE ) { g_can_invis[id] = false g_on_invis[id] = true set_pev(id, pev_health, (pev(id, pev_health) - get_pcvar_float(cvar_hp))) set_task(get_pcvar_float(cvar_invis_time), "remove_invisible", id) set_task(get_pcvar_float(cvar_freeze_time), "can_invisible", id) emit_sound( id , CHAN_VOICE , g_sound_pressure , 1.0 , ATTN_NORM , 0 , PITCH_NORM ) entity_set_string(id,EV_SZ_viewmodel,zclass_invisible_clawmodel) zombie_invisible_hud(id,1) } return PLUGIN_CONTINUE }
|