Modified Two Effects:
modified: Player/PlayerGetOffYourPhone.lua - changed how the effect handles phone models modified: Weather/WeatherTrueSnow.lua - added an effect incompatible id and removed a semi colon
This commit is contained in:
@@ -8,13 +8,44 @@ EffectInfo = {
|
||||
}
|
||||
|
||||
function OnStart()
|
||||
if IS_MOBILE_PHONE_CALL_ONGOING() == false then
|
||||
TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("cellphone_controller")
|
||||
end
|
||||
REQUEST_SCRIPT("cellphone_controller")
|
||||
|
||||
while (HAS_SCRIPT_LOADED("cellphone_controller") == false ) do
|
||||
WAIT(0)
|
||||
end
|
||||
START_NEW_SCRIPT("cellphone_controller", 1424)
|
||||
|
||||
SET_SCRIPT_AS_NO_LONGER_NEEDED("cellphone_controller")
|
||||
end
|
||||
|
||||
function OnStop()
|
||||
if IS_MOBILE_PHONE_CALL_ONGOING() == false then
|
||||
TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("cellphone_controller")
|
||||
end
|
||||
REQUEST_SCRIPT("cellphone_controller")
|
||||
|
||||
while (HAS_SCRIPT_LOADED("cellphone_controller") == false ) do
|
||||
WAIT(0)
|
||||
end
|
||||
START_NEW_SCRIPT("cellphone_controller", 1424)
|
||||
|
||||
SET_SCRIPT_AS_NO_LONGER_NEEDED("cellphone_controller")
|
||||
end
|
||||
|
||||
function OnTick()
|
||||
playerPed = PLAYER_PED_ID()
|
||||
if IS_PAUSE_MENU_ACTIVE() or IS_PLAYER_SWITCH_IN_PROGRESS() or IS_PLAYER_DEAD(PLAYER_ID()) or DOES_ENTITY_EXIST(playerPed) ~= true then return end
|
||||
CREATE_MOBILE_PHONE(0)
|
||||
playerModel = GET_ENTITY_MODEL(playerPed)
|
||||
phoneType = 0
|
||||
if playerModel == 2602752943 then
|
||||
phoneType = 2
|
||||
end
|
||||
|
||||
if playerModel == 2608926626 then
|
||||
phoneType = 1
|
||||
end
|
||||
CREATE_MOBILE_PHONE(phoneType)
|
||||
end
|
||||
|
@@ -3,7 +3,10 @@ EffectInfo = {
|
||||
EffectId = "weather_snowstorm",
|
||||
TimedType = "Normal",
|
||||
EffectGroup = "_group_weatherchange",
|
||||
EffectCategory = "Shader"
|
||||
EffectCategory = "Shader",
|
||||
IncompatibleIds = {
|
||||
"world_snow"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,6 +19,7 @@ function OnStop()
|
||||
SET_TIMECYCLE_MODIFIER_STRENGTH(1.0) -- reset the timecycle strength for any effects that require it but do not modify the strength by themselves.
|
||||
CLEAR_TIMECYCLE_MODIFIER()
|
||||
SET_WEATHER_TYPE_NOW("CLEAR")
|
||||
USE_SNOW_FOOT_VFX_WHEN_UNSHELTERED(false)
|
||||
end
|
||||
|
||||
function OnTick()
|
||||
@@ -28,4 +32,5 @@ function OnTick()
|
||||
SET_PED_MOVEMENT_CLIPSET(ped, "move_f@injured", 1.0)
|
||||
end
|
||||
end
|
||||
USE_SNOW_FOOT_VFX_WHEN_UNSHELTERED(true)
|
||||
end
|
||||
|
Reference in New Issue
Block a user