Modified Effects:
Modified the Snow Storm Effect Create the pizza time effect
This commit is contained in:
19
Peds/PedsPizzaBikes.lua
Normal file
19
Peds/PedsPizzaBikes.lua
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
EffectInfo = {
|
||||||
|
Name = "Pizza Time",
|
||||||
|
EffectId = "peds_pizzatime",
|
||||||
|
TimedType = "None",
|
||||||
|
EffectGroup = "_group_trafficspawner",
|
||||||
|
EffectCategory = "TrafficSpawner"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function OnStart()
|
||||||
|
bikeHash = GET_HASH_KEY("pizzaboy")
|
||||||
|
SetSurroundingPedsInVehicles(bikeHash, 0)
|
||||||
|
end
|
||||||
|
|
||||||
|
function OnStop()
|
||||||
|
end
|
||||||
|
|
||||||
|
function OnTick()
|
||||||
|
end
|
@@ -8,6 +8,7 @@ EffectInfo = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function OnStart()
|
function OnStart()
|
||||||
|
REQUEST_CLIP_SET("move_f@injured")
|
||||||
end
|
end
|
||||||
|
|
||||||
function OnStop()
|
function OnStop()
|
||||||
@@ -22,4 +23,9 @@ function OnTick()
|
|||||||
SET_WEATHER_TYPE_NOW("BLIZZARD")
|
SET_WEATHER_TYPE_NOW("BLIZZARD")
|
||||||
SET_TIMECYCLE_MODIFIER("prologue_ending_fog")
|
SET_TIMECYCLE_MODIFIER("prologue_ending_fog")
|
||||||
SET_TIMECYCLE_MODIFIER_STRENGTH(0.6)
|
SET_TIMECYCLE_MODIFIER_STRENGTH(0.6)
|
||||||
|
for _, ped in ipairs(GetAllPeds()) do
|
||||||
|
if ped ~= PLAYER_PED_ID() then
|
||||||
|
SET_PED_MOVEMENT_CLIPSET(ped, "move_f@injured", 1.0);
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user