Added + Edited Effects
Edited Snow Storm: - Changed timecycle strength and added strength reset code Added Horn Bombs: - Vehicles Explode when they honk
This commit is contained in:
22
Vehs/VehicleHornBombs.lua
Normal file
22
Vehs/VehicleHornBombs.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
EffectInfo = {
|
||||
Name = "Horn Bombs",
|
||||
EffectId = "vehs_hornbombs",
|
||||
TimedType = "Normal",
|
||||
EffectGroup = "_group_trafficspawner",
|
||||
EffectCategory = "None"
|
||||
|
||||
}
|
||||
|
||||
function OnStart()
|
||||
end
|
||||
|
||||
function OnStop()
|
||||
end
|
||||
|
||||
function OnTick()
|
||||
for _, vehicle in ipairs(GetAllVehicles()) do
|
||||
if IS_HORN_ACTIVE(vehicle) then
|
||||
EXPLODE_VEHICLE(vehicle,true,false)
|
||||
end
|
||||
end
|
||||
end
|
@@ -1,6 +1,6 @@
|
||||
EffectInfo = { -- ScriptInfo for mod version < 2.0
|
||||
EffectInfo = {
|
||||
Name = "Snow Storm",
|
||||
EffectId = "weather_snowstorm", -- ScriptId for mod version < 2.0
|
||||
EffectId = "weather_snowstorm",
|
||||
TimedType = "Normal",
|
||||
EffectGroup = "_group_weatherchange",
|
||||
EffectCategory = "Shader"
|
||||
@@ -8,11 +8,11 @@ EffectInfo = { -- ScriptInfo for mod version < 2.0
|
||||
}
|
||||
|
||||
function OnStart()
|
||||
SET_TIMECYCLE_MODIFIER("prologue_ending_fog")
|
||||
end
|
||||
|
||||
function OnStop()
|
||||
SetSnowState(false)
|
||||
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")
|
||||
end
|
||||
@@ -20,4 +20,6 @@ end
|
||||
function OnTick()
|
||||
SetSnowState(true)
|
||||
SET_WEATHER_TYPE_NOW("BLIZZARD")
|
||||
SET_TIMECYCLE_MODIFIER("prologue_ending_fog")
|
||||
SET_TIMECYCLE_MODIFIER_STRENGTH(0.6)
|
||||
end
|
||||
|
Reference in New Issue
Block a user