The Driver Syndicate/Scripting/Mission Scripting: Difference between revisions

From Equilibrium Engine Wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 10: Line 10:


== Minigames ==
== Minigames ==
=== Basic Minigames ===
You can check "GameData\scripts\missions\minigame" for reference
You can check "GameData\scripts\missions\minigame" for reference


* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Checkpoint|Checkpoint]]
The following minigames can be created:
* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Gates|Gates]]
* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Getaway|Getaway]]
* [[The Driver Syndicate/Scripting/Mission Scripting/Pursuit|Pursuit]]
* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Survival|Survival]]
* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Trailblazer|Trailblazer]]
 
=== Gates ===
#
After this you only need to add the minigame in your ModInit file
 
(this needs to be described in more detail here)
 
Also see [[The Driver Syndicate/Addon System]]
 
=== Getaway ===
ToDo:<syntaxhighlight lang="lua">
--//////////////////////////////////////////////////////////////////////////////////
--// Copyright � Inspiration Byte
--// 2009-2015
--//////////////////////////////////////////////////////////////////////////////////
 
--------------------------------------------------------------------------------
-- Cop test script
--------------------------------------------------------------------------------
 
world:SetLevelName("default") -- set levelname here
world:SetEnvironmentName("dusk_night_transition") -- set weather and daytime here
 
----------------------------------------------------------------------------------------------
-- Mission initialization
----------------------------------------------------------------------------------------------
 
MISSION.MusicScript = "vegas_day" -- set music here
MISSION.Init = function()
local GameProps = {
CopCarName = "cop_regis", -- set cop car here
CopPosition = Vector3D.new(194.96,0.31,124.11), --set cop starting point here
CopAngles = Vector3D.new(0, 90, 0), --set cop starting direction here
Timeout = 98
}
-- car name maxdamage pos ang
local playerCar = gameses:CreateCar("challenger", CAR_TYPE_NORMAL) -- set player car here
 
playerCar:SetOrigin( Vector3D.new(134.96,0.31,124.11) ) --set player starting point here
playerCar:SetAngles( Vector3D.new(0,90,0) ) --set player starting point here
playerCar:Spawn()
playerCar:SetColorScheme(2)
gameses:SetPlayerCar( playerCar )
GetawayGame.Init(GameProps)
 
end
</syntaxhighlight>
 
=== Pursuit ===
ToDo:
 
=== Survival ===
ToDo:<syntaxhighlight lang="lua">
--//////////////////////////////////////////////////////////////////////////////////
--// Copyright � Inspiration Byte
--// 2009-2015
--//////////////////////////////////////////////////////////////////////////////////
 
--------------------------------------------------------------------------------
-- Cop test script
--------------------------------------------------------------------------------
 
world:SetLevelName("default")
world:SetEnvironmentName("dusk_overcast")
 
----------------------------------------------------------------------------------------------
-- Mission initialization
----------------------------------------------------------------------------------------------
 
MISSION.MusicScript = "rio_day" --set music here
 
MISSION.Init = function()
 
-- car name maxdamage pos ang
local playerCar = gameses:CreateCar("mustang_f", CAR_TYPE_NORMAL) --set car here
 
playerCar:SetOrigin( Vector3D.new(41.44, 0.48, 107.64) ) --set starting coordinates here
playerCar:SetAngles( Vector3D.new(0, -90, 0) ) --set starting direction here
playerCar:SetColorScheme(3)
playerCar:Spawn()


gameses:SetPlayerCar( playerCar )
* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Checkpoint|Checkpoint]] - drive through all checkpoints to beat the best time
* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Gates|Gates]] - drive through the gates without touching or missing them
SurvivalGame.Init( 8 )
* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Getaway|Getaway]] - escape the pursuing vehicle before time runs out
end
* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Pursuit|Pursuit]] - track and stop the target vehicle
* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Survival|Survival]] - survive the attacks of the enemy vehicles as long as you can
* [[The Driver Syndicate/Scripting/Mission Scripting/Minigames/Trailblazer|Trailblazer]] - drive over all cones without missing one
many sections here are still incomplete!


--------------------------------------------------------------------------------
=== Custom Minigames ===
</syntaxhighlight>
Other custom minigames can also be created, but this requires a lot of experience.


=== Trailblazer ===
For example "Taxi Driver Minigame" by r3trodev or "Destruction Derby" by SilverCatzZ
Similar to Gates...


ToDo:
== See Also ==
[[The Driver Syndicate/Addon System]]

Latest revision as of 14:30, 25 January 2025

Overview

There are almost endless possibilities to create missions. As an example you can look at the default missions (located in: GameData\scripts\missions\story_demo)

For creating and testing missions and minigames usa always Release.exe!

Missions

This will be a big chapter. That's why there's a separate page for it.

See here: Creating Missions

Minigames

Basic Minigames

You can check "GameData\scripts\missions\minigame" for reference

The following minigames can be created:

  • Checkpoint - drive through all checkpoints to beat the best time
  • Gates - drive through the gates without touching or missing them
  • Getaway - escape the pursuing vehicle before time runs out
  • Pursuit - track and stop the target vehicle
  • Survival - survive the attacks of the enemy vehicles as long as you can
  • Trailblazer - drive over all cones without missing one

many sections here are still incomplete!

Custom Minigames

Other custom minigames can also be created, but this requires a lot of experience.

For example "Taxi Driver Minigame" by r3trodev or "Destruction Derby" by SilverCatzZ

See Also

The Driver Syndicate/Addon System