-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two callouts added. Bugs fixed (v1.4.5.0)
- Loading branch information
Mikel Miras
committed
Jun 15, 2021
1 parent
dce0e52
commit 266723c
Showing
9 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using LSPD_First_Response; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Rage; | ||
using System.Reflection; | ||
using System.Drawing; | ||
using System.Windows.Forms; | ||
using MetroCallouts3; | ||
using MetroCallouts3.Callouts; | ||
using Rage.Native; | ||
using LSPD_First_Response.Mod.API; | ||
using LSPD_First_Response.Mod.Callouts; | ||
using LSPD_First_Response.Engine.Scripting.Entities; | ||
|
||
namespace MetroCallouts3.Callouts | ||
{ | ||
public class accidente2 : Callout | ||
{ | ||
public Vehicle victimVehicle1; | ||
public Vector3 spawnVehicle; | ||
public Vehicle victimVehicle2; | ||
public Ped driver1; | ||
public Ped driver2; | ||
public Blip blipDriver1; | ||
public Blip blipDriver2; | ||
public bool wasCalloutAccepted; | ||
public override bool OnBeforeCalloutDisplayed() | ||
{ | ||
spawnVehicle = new Vector3(522.22f, -534.45f, 35.81f); | ||
wasCalloutAccepted = false; | ||
CalloutMessage = "Choque entre dos vehículos"; | ||
CalloutPosition = spawnVehicle; | ||
ShowCalloutAreaBlipBeforeAccepting(spawnVehicle, 1f); | ||
LSPD_First_Response.Mod.API.Functions.PlayScannerAudioUsingPosition("WE_HAVE ", spawnVehicle); | ||
return base.OnBeforeCalloutDisplayed(); | ||
} | ||
public override bool OnCalloutAccepted() | ||
{ | ||
wasCalloutAccepted = true; | ||
spawnVehicle = new Vector3(522.22f, -534.45f, 35.81f); | ||
victimVehicle1 = new Vehicle("BLISTA", spawnVehicle, 100.64f); | ||
spawnVehicle = new Vector3(533.76f, -528.85f, 35.37f); | ||
victimVehicle2 = new Vehicle("ASEA", spawnVehicle, 309.81f); | ||
return base.OnCalloutAccepted(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
MetroCallouts3/obj/Debug/MetroCallouts3.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
82a0d03043ef30f8da0735c6af82c52cd98b9b3e | ||
2cb5dd6c55223d3674354f6db4c73c2b507cba1c |
Binary file modified
BIN
+0 Bytes
(100%)
MetroCallouts3/obj/Debug/MetroCallouts3.csprojAssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.