Wear simulation clothing while on ship

Hey man, is it possible to assign the in-ship clothing as "none", so my character can be naked everytime she is on the ship?
 
Hey, can you do a patch for how the saint's saved christmas + Fan of saints's sandbox+? or is it the same as the patches you made?
 
Can I please get a line from the file that does this? I have another one in that file.

iirc in game_lib.lua
this function:
Code:
--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

becomes this:
Code:
--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

and in sr3_city.lua you need to add mission_apply_ship_suit_to_players() in the function hub_loaded( )
like so:
Code:
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
 
Back
Top