Wersja MetaMod: v1.19p32
Logi:
L 03/28/2010 - 20:41:58: Start of error session. L 03/28/2010 - 20:41:58: Info (map "de_nuke_1337") (file "addons/amxmodx/logs/error_20100328.log") L 03/28/2010 - 20:41:58: Invalid player id 26 L 03/28/2010 - 20:41:58: [AMXX] Displaying debug trace (plugin "Diablo_Mod.amxx") L 03/28/2010 - 20:41:58: [AMXX] Run time error 10: native error (native "get_user_weapon") L 03/28/2010 - 20:41:58: [AMXX] [0] Diablo_Mod.sma::Damage (line 1471) L 03/28/2010 - 20:41:58: Invalid player id 26 L 03/28/2010 - 20:41:58: [AMXX] Displaying debug trace (plugin "Diablo_Mod.amxx") L 03/28/2010 - 20:41:58: [AMXX] Run time error 10: native error (native "get_user_weapon") L 03/28/2010 - 20:41:58: [AMXX] [0] Diablo_Mod.sma::Damage (line 1471) L 03/28/2010 - 20:41:58: Invalid player id 26 L 03/28/2010 - 20:41:58: [AMXX] Displaying debug trace (plugin "Diablo_Mod.amxx") L 03/28/2010 - 20:41:58: [AMXX] Run time error 10: native error (native "get_user_weapon") L 03/28/2010 - 20:41:58: [AMXX] [0] Diablo_Mod.sma::Damage (line 1471) L 03/28/2010 - 20:54:27: Invalid player id 29 L 03/28/2010 - 20:54:27: [AMXX] Displaying debug trace (plugin "Diablo_Mod.amxx") L 03/28/2010 - 20:54:27: [AMXX] Run time error 10: native error (native "get_user_weapon") L 03/28/2010 - 20:54:27: [AMXX] [0] Diablo_Mod.sma::Damage (line 1471) L 03/28/2010 - 20:54:27: Invalid player id 29 L 03/28/2010 - 20:54:27: [AMXX] Displaying debug trace (plugin "Diablo_Mod.amxx") L 03/28/2010 - 20:54:27: [AMXX] Run time error 10: native error (native "get_user_weapon") L 03/28/2010 - 20:54:27: [AMXX] [0] Diablo_Mod.sma::Damage (line 1471) L 03/28/2010 - 21:00:03: Invalid player id 26 L 03/28/2010 - 21:00:03: [AMXX] Displaying debug trace (plugin "Diablo_Mod.amxx") L 03/28/2010 - 21:00:03: [AMXX] Run time error 10: native error (native "get_user_weapon") L 03/28/2010 - 21:00:03: [AMXX] [0] Diablo_Mod.sma::Damage (line 1471) L 03/28/2010 - 21:00:24: Invalid player id 30 L 03/28/2010 - 21:00:24: [AMXX] Displaying debug trace (plugin "Diablo_Mod.amxx") L 03/28/2010 - 21:00:24: [AMXX] Run time error 10: native error (native "get_user_weapon") L 03/28/2010 - 21:00:24: [AMXX] [0] Diablo_Mod.sma::Damage (line 1471)
Diablo.log
diablo.txt 14,68 KB 46 Ilość pobrańModuły:
; ------------------------------ ; Fun - provides extra functions ; ------------------------------ fun_amxx_i386.so ; ---------------------------------------------------- ; Engine - provides engine functions core to Half-Life ; ---------------------------------------------------- engine_amxx_i386.so ; ---------------------------------------------------------- ; Fakemeta - provides a massive interface into the HL engine ; ---------------------------------------------------------- fakemeta_amxx_i386.so ; ------------------------------------------- ; Database Access - only enable one of these ; ------------------------------------------- ; MySQL mysql_amxx_i386.so ; SQLite ;sqlite_amxx_i386.so ; --------------------------------------------- ; GeoIP - determines the country of ip adresses ; --------------------------------------------- geoip_amxx_i386.so ; -------------------------------- ; Sockets - network socket support ; -------------------------------- sockets_amxx_i386.so ; -------------------------- ; Regular Expression support ; -------------------------- regex_amxx_i386.so ; -------------------- ; Binary Vault support ; -------------------- nvault_amxx_i386.so ; ---------------------------------------------------------- ; Counter-Strike - adds functions specific to Counter-Strike ; ---------------------------------------------------------- cstrike_amxx_i386.so ; ----------------------------------------------------- ; CSX - adds functionality for CS statistics and events ; ----------------------------------------------------- csx_amxx_i386.so ; ----------------------------------------------------- ; HamSandWich - additonal module for AMXX 1.8.0 + ; ----------------------------------------------------- hamsandwich_amxx_i386.so
Funkcja Damage:
public Damage(id)
{
if (is_user_connected(id))
{
new weapon
new bodypart
if(get_user_attacker(id,weapon,bodypart)!=0)
{
new damage = read_data(2)
new attacker_id = get_user_attacker(id,weapon,bodypart)
if (is_user_connected(attacker_id) && attacker_id != id)
{
if(get_user_team(id) != get_user_team(attacker_id))
{
if(damage>175) player_dmg[attacker_id]+=damage/2
else player_dmg[attacker_id]+=damage
dmg_exp(attacker_id)
}
add_damage_bonus(id,damage,attacker_id)
add_vampire_bonus(id,damage,attacker_id)
add_grenade_bonus(id,attacker_id,weapon)
add_theif_bonus(id,attacker_id)
add_bonus_blind(id,attacker_id,weapon,damage)
add_bonus_redirect(id)
add_bonus_necromancer(attacker_id,id)
add_bonus_scoutdamage(attacker_id,id,weapon)
add_bonus_deagledamage(attacker_id,id,weapon)
add_bonus_knifemasterdamage(attacker_id,id,weapon)
add_bonus_m3masterdamage(attacker_id,id,weapon)
add_bonus_darksteel(attacker_id,id,damage)
add_bonus_illusion(attacker_id,id,weapon)
item_take_damage(id,damage)
if(player_sword[attacker_id] == 1 && weapon==CSW_KNIFE )
{
change_health(id,-35,attacker_id,"world")
}
if (HasFlag(attacker_id,Flag_Ignite))
RemoveFlag(attacker_id,Flag_Ignite)
if((HasFlag(id,Flag_Illusion) || HasFlag(id,Flag_Teamshield))&& get_user_health(id) - damage > 0)
{
new weaponname[32]; get_weaponname( weapon, weaponname, 31 ); replace(weaponname, 31, "weapon_", "")
UTIL_Kill(attacker_id,id,weaponname)
}
if (HasFlag(id,Flag_Moneyshield))
{
change_health(id,damage/2,0,"")
}
//Add the agility damage reduction, around 45% the curve flattens
if (damage > 0 && player_agility[id] > 0)
{
new heal = floatround(player_damreduction[id]*damage)
if (is_user_alive(id)) change_health(id,heal,0,"")
}
if (HasFlag(id,Flag_Teamshield_Target))
{
//Find the owner of the shield
new owner = find_owner_by_euser(id,"Effect_Teamshield")
new weaponname[32]; get_weaponname( weapon, weaponname, 31 ); replace(weaponname, 31, "weapon_", "")
if (is_user_alive(owner))
{
change_health(attacker_id,-damage,owner,weaponname)
change_health(id,damage/2,0,"")
}
}
}
if(attacker_id<1 || attacker_id>32) return
new clip,ammo
new weapon = get_user_weapon(attacker_id,clip,ammo);
if((attacker_id!=id)&&player_class[attacker] == Mag)
{
if(weapon == CSW_GLOCK18 || weapon == CSW_USP || weapon == CSW_P228 || weapon == CSW_DEAGLE || weapon == CSW_ELITE || weapon == CSW_FIVESEVEN)
{
agi=(BASE_SPEED / 2)
set_speedchange(id)
if(DemageTake[id]==0)
{
DemageTake[id]=1
set_task(11.0, "funcReleaseVic", id)
set_task(11.0, "funcReleaseVic2", id)
set_task(2.0, "funcDemageVic", id+GLUTON)
}
}
}
if(is_user_connected(attacker_id)&&(attacker_id!=id)&&player_class[attacker] == Zabojca)
{
if(weapon == CSW_GLOCK18 || weapon == CSW_USP || weapon == CSW_P228 || weapon == CSW_DEAGLE || weapon == CSW_ELITE || weapon == CSW_FIVESEVEN)
{
set_task(1.5, "funcDemageVic3", id)
}
}
if(is_user_connected(attacker_id)&&(attacker_id!=id)&&player_class[attacker] == Hunter)
{
if(weapon == CSW_GLOCK18 || weapon == CSW_USP || weapon == CSW_P228 || weapon == CSW_DEAGLE || weapon == CSW_ELITE || weapon == CSW_FIVESEVEN)
{
new ori[3]
trace_bool[attacker]=id
get_user_origin(id,ori)
new parms[5];
for(new i=0;i<3;i++)
{
parms[i] = ori[i]
}
parms[3]=attacker
parms[4]=id
set_task(0.5,"charge_hunter",attacker,parms,5)
}
}
}
}
}Felerna linia 1471:
new weapon = get_user_weapon(attacker_id,clip,ammo);


Dodatki SourceMod



Temat jest zamknięty









