|
g_new_speed = register_cvar("zp_force_speed", "300.0") // 速度
g_extra_damage = register_cvar("zp_force_damage", "1.0") // 防御
g_force_gravity = register_cvar("zp_force_gravity", "0.6") // 重力
g_new_health = register_cvar("zp_force_health", "2000") // 额外血量
g_extra_glow = register_cvar("zp_glow_on", "1") //光环效果
register_cvar("zp_aura_red", "255") //红
register_cvar("zp_aura_green", "100") //绿
register_cvar("zp_aura_blue", "0") //蓝
register_plugin(PLUGIN, VERSION, AUTHOR)
g_itemid_zforce = zp_register_extra_item(g_item_name, g_item_cost, ZP_TEAM_ZOMBIE)
register_forward(FM_PlayerPreThink, "fm_PlayerPreThink") // 购买后更换速度?
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamaged")
|
|