Could I get a link to the mod please? I've been trying to find itTheres a mod on steamworkshop that disables all those "force to wear" missions. It works even in cutscenes
Could I get a link to the mod please? I've been trying to find it
Can I please get a line from the file that does this? I have another one in that file.thanks i will try on my game to see if they're bugged and if they are i will try and fix them.
Can I please get a line from the file that does this? I have another one in that file.
--This function should correctly apply the ship suit for any players in the player list
function mission_apply_ship_suit_to_players()
local player_list = player_names_get_all()
local add_to_wardrobe = false
--Remove all clothing before we put on the correct clothes
players_naked(true)
-- Wait until everyone is good and nekkid before we proceed
for i, player in pairs(player_list) do
while player_customization_is_finalized(player) == false do
thread_yield()
end
end
-- Put on your clothes.
for i, player in pairs(player_list) do
local sync_flags = SYNC_LOCAL
if player == REMOTE_PLAYER then
sync_flags = SYNC_REMOTE
end
if character_get_gender(player) == GENDER_TYPE_MALE then
local item_name = "cm_suit_jumpsuit01"
local wear_option = "cm_suit_jumpsuit01.cmeshx"
local variant = "defaultMat"
local clear_facewear = true
customization_item_wear(item_name, wear_option, variant, add_to_wardrobe, sync_flags, clear_facewear)
else
local item_name = "cf_suit_jumpsuit02"
local wear_option = "cm_suit_jumpsuit02.cmeshx"
local variant = "defaultMat"
local clear_facewear = true
customization_item_wear(item_name, wear_option, variant, add_to_wardrobe, sync_flags, clear_facewear)
end
end
-- Wait until everything is ready to show.
for i, player in pairs(player_list) do
while player_customization_is_finalized(player) == false do
delay(0.25)
end
end
end
--This function should correctly apply the ship suit for any players in the player list
function mission_apply_ship_suit_to_players()
local player_list = player_names_get_all()
local add_to_wardrobe = false
--Remove all clothing before we put on the correct clothes
players_naked(false)
-- wait until everyone is good and nekkid before we proceed
for i, player in pairs(player_list) do
while player_customization_is_finalized(player) == false do
thread_yield()
end
end
end
function hub_loaded( )
mission_apply_ship_suit_to_players()
convo_startup(SR3_CITY_convo)
for i, trig in pairs(SR3_CITY_trigger) do
if trig.callback == nil or trig.callback == "" then
on_trigger( "crib_ship_trigger_cb", trig.name )
else
on_trigger( trig.callback, trig.name )
end
trig.hit = false
trig.last_hit_by = nil
end
trigger_enable (SR3_CITY_trigger.start_txt_adventure.name, true)
--trigger_enable (SR3_CITY_trigger.hack_cargo.name, true)
-- reset global vars needed for each crib ship visit
for i, num_talks in pairs(SR3_CITY_CRIBSHIP_num_talks) do
SR3_CITY_CRIBSHIP_num_talks[i] = 0
end
for i, sex_flag in pairs(SR3_CITY_CRIBSHIP_sex_flags) do
SR3_CITY_CRIBSHIP_sex_flags[i] = false
end
sr3_city_homie_setup_wrapper()
end
I believe you would have to edit each mission script individually to remove costume changes rather than the cutscenes.Sorry for the necro, but it's directly related to the mod. I'm curious about extending its functionality -- no forced costume changes in cutscenes either. Cutscenes still force the main player back into the ship suit (unless it's not supposed to and this part of the mod isn't working for me?). Is there any way to disable that as well? I dug around in the cutscenes.vpp_pc and cutscenes_table.vpp_pc in the hopes that I could find the requisite function calls, but I had no luck.
I was kind of hoping I could play though the game without that damned ship suit ever making an appearance. So very, VERY tired of it.
I suspected I was looking in the wrong place -- and that it might be the city files. I've collected up the .lua files that appear to have the requisite function calls and commented out the appropriate lines. I'll test them out later.I believe you would have to edit each mission script individually to remove costume changes rather than the cutscenes.
You can find the mission lua files in the sr3_city_0.vpp_pc packaged in separate m**_modal.str2_pc files.