Masks, materials, textures, colors, weapon mods (ปลดล็อคตกแต่งหน้ากาก และอาวุธ)
แนะนำควรใช้ตัวนี้ก่อนที่จะใช้ ปลดล็อคหน้ากากข้างล่าง เพราะตัวนี้หน้ากาก DLC ไม่ปลดล็อค เราเอาแค่ตกแต่ง
โค้ด:
-- GiVE iTEMS ("masks", "materials", "textures", "colors", "weapon_mods")
function giveitems( times, type )
for i=1, times do
for mat_id,_ in pairs(tweak_data.blackmarket[type]) do
if _.infamous then
managers.blackmarket:add_to_inventory("infamous", type, mat_id, true)
elseif _.dlc then
managers.blackmarket:add_to_inventory("preorder", type, mat_id, true)
else
managers.blackmarket:add_to_inventory("normal", type, mat_id, true)
end
end
managers.blackmarket:remove_item("normal", "materials", "plastic", false)
managers.blackmarket:remove_item("normal", "colors", "nothing", false)
end
end
-- Example calls to get one of everything:
giveitems(1, "masks")
giveitems(1, "materials")
giveitems(1, "textures")
giveitems(1, "colors")
giveitems(1, "weapon_mods")
All mask (ปลดล็อคทุดหน้ากาก)
โค้ด:
managers.blackmarket:_setup_masks()
for mask_id,_ in pairs(tweak_data.blackmarket.masks) do
Global.blackmarket_manager.masks[mask_id].unlocked = true
managers.blackmarket:add_to_inventory("normal", "masks", mask_id, false)
end
No Alert (ไม่มีการแจ้งตำรวจ)
โค้ด:
function GroupAIStateBase:_clbk_switch_enemies_to_not_cool() end
function PlayerMovement:on_suspicion( observer_unit, status ) end
function GroupAIStateBase:on_criminal_suspicion_progress( u_suspect, u_observer, status ) end
function GroupAIStateBase:criminal_spotted( unit ) end
function GroupAIStateBase:report_aggression( unit ) end
function PlayerMovement:on_uncovered( enemy_unit ) end
function SecurityCamera:_upd_suspicion( t ) end
function SecurityCamera:_sound_the_alarm( detected_unit ) end
function SecurityCamera:_set_suspicion_sound( suspicion_level ) end
function SecurityCamera:clbk_call_the_police() end
function CopMovement:anim_clbk_police_called( unit ) end
function CopLogicArrest._upd_enemy_detection( data ) end
function CopLogicArrest._call_the_police( data, my_data, paniced ) end
function CopLogicIdle.on_alert( data, alert_data ) end
function CopLogicBase._get_logic_state_from_reaction( data, reaction )
return "idle"
end
function GroupAIStateBase:sync_event( event_id, blame_id ) end
function GroupAIStateBase:on_police_called( called_reason ) end
function GroupAIStateBase:on_police_weapons_hot( called_reason ) end
function GroupAIStateBase:on_gangster_weapons_hot( called_reason ) end
function GroupAIStateBase:on_enemy_weapons_hot( is_delayed_callback ) end
function GroupAIStateBase:_clbk_switch_enemies_to_not_cool() end
No time drill (เจาะไร้เวลา)
โค้ด:
function TimerGui:_set_jamming_values() return end
function TimerGui:start( timer )
timer = 0.01
if self._jammed then
self:_set_jammed( false )
return
end
if not self._powered then
self:_set_powered( true )
return
end
-- Infinite Pagers
function GroupAIStateBase:on_successful_alarm_pager_bluff() end
if self._started then
return
end
self:_start( timer )
if managers.network:session() then
managers.network:session():send_to_peers_synched( "start_timer_gui", self._unit, timer )
end
end
Skill point (โกงแต้มสกิล)
โค้ด:
managers.skilltree:_set_points(300) -- skill points
Momey (ปั๊มโกงเงิน)
โค้ด:
managers.money:_add_to_total(5000000000) -- money
-- Message on screen
if managers.hud then
managers.hud:show_hint( { text = "LUA script loaded! Complete the mission to see effect." } )
end
Allweaponmod (ปลดล็อคชิ้นส่วนอาวุธ)
โค้ด:
-- All weapon mods
for mod_id,_ in pairs(tweak_data.blackmarket.weapon_mods) do
tweak_data.blackmarket.weapon_mods[ mod_id ].unlocked = true
managers.blackmarket:add_to_inventory("normal", "weapon_mods", mod_id, false)
end