Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs #26

Merged
merged 2 commits into from
Aug 18, 2022
Merged

Docs #26

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions docs/Sar2 doc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title></title>
<style>
H2 { text-align: center; }
</style>
</head>
<body>
<header>
<h2>Search And Rescue II documentation</h2>
</header>
<main>
<li><ul>
<a href= "./sarManual_2004/Manual.html">Search and Rescue manual</a>
<ul><p>You never played SAR II or you want to increase your knowledge about this game? Have a look at the <strong>original</strong> (2001-2004) Search and Rescue manual. Unfortunately some information may be out of date and external links are broken, but this document is really a gold mine!!!</p></ul>
</ul></li>
<li><ul>
<a href= "./mission_howto/mission_HowTo.html">How to write a mission</a>
<ul><p>You want contribute to SAR II and write a mission, and you don't know how to do? Open your prefered text editor and read this!</p></ul>
</ul></li>
<li><ul>
<a href= "./scenery_howto/scenery_HowTo.html">How to write a scenery</a>
<ul><p>You want contribute to SAR II and write a scenery? Read this!</p></ul>
</ul></li>
<li><ul>
<a href= "./sar2ParmsBook/sar2ParmsBook.html" target="_blank">SAR II parameters book</a> -opens in a new tab-
<ul><p>An exhaustive list of parameters that can be found in object (*.3d), scenery (*.scn), and mission (*.mis) files.</p></ul>
</ul></li>
</main>
<footer></footer>
</body>
</html>
118 changes: 118 additions & 0 deletions docs/mission_howto/los_angeles99.mis
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
#
# Mission Header
#

# Mission name and short description
name L.A. 99: Injured sailor transport

# Description of mission
description <underline>US Coast Guard vessel<default> cooker has set fire to kitchen. Hopefully, \
you and your helicopter are on board! You will have to <bold>take off<default> with him and a doctor \
and bring them to <underline>UCLA Hospital<default>.\nHurry up, <bold>time is limited<default>, because cooker \
is severely burned!

# Weather
weather Cloudy

# Scenery file
mission_scene_file scenery/los_angeles.scn

# Wind.
wind 90 5 gusts

# Mission specific objects to add to scenery

# US Coast Guard vessel
create_object 3
model_file vessels/uscg378.3d
object_name uscg378_01
translate -12402.0 41157.0 0.0
rotate 0 0 0

# Helipad on US Coast Guard vessel
create_helipad vehicle 29.0 18.0 3.2 USCG y y y y y uscg378_01 0.0 -58.5 36.0 0.0 0.0 0.0
object_name helipad_uscg
object_map_description US Coast Guard vessel helipad
range 2200

# Smoke offsetx offsety offsetz(m) start max rate hide_at_max respawn_int total_units color_code
create_smoke 0.0 0.0 15.0 0.5 2.0 0.19 0 2000 10 0
translate -12379.0 41145.5 -4.0

# Injured sailor
create_human victim_streatcher_assisted need_rescue lying on_streatcher
translate -12398.0 41113.0 17.0
human_reference player run_towards
set_human_mesg_enter To UCLA please! Hurry up, he's severely burned!

# Car
create_object 2
model_file automobiles/cuda.3d
translate -7960 37990 0.0
rotate 310 0 0

# Pedestrian
create_human default lying need_rescue
translate -7963 37992 1.0
set_human_mesg_enter My leg! My leg! ... Yum yum! It smells grilled meat here, isn't it?

# Car driver
create_human default alert
translate -7962 37993.5 1.0

# Begin at object (name of object from scene file or from above created objects)
mission_begin_at_pos -12402.0 41098.5 36.0
mission_begin_at helipad_uscg

# Time of day
time_of_day 10:00

#
# Mission Objective(s)
#

# Mission first objective
mission_objective_new arrive
mission_objective_arrive_at helipad_ucla
mission_objective_time_left 4.5
mission_objective_message_success \
Good jo... HEY! Wait! There's a new mission for you! Car accident! Follow your navigation system and hurry up!
mission_objective_message_fail \
You failed to bring the sailor to hospital

# Mission second objective
mission_objective_new pick_up
mission_objective_humans_tally 1 1
mission_objective_time_left 0.0
mission_objective_message_success \
Victim on board. Now, bring him to UCLA!
mission_objective_message_fail \
You failed to reach and pick up the car victim safely!

# Mission third objective
mission_objective_new arrive
mission_objective_arrive_at helipad_ucla
mission_objective_time_left 0.0
mission_objective_message_success \
Good job, you brought the car victim back safely to UCLA!
mission_objective_message_fail \
You failed to bring the car victim back to UCLA!

#
# Mission Post Data (these need to come after the objectives)
#

# Create player object
player_model_file aircrafts/hh65.3d

# First waypoint (for first objective)
# ref_code radius urgency
mission_add_intercept 3 1.0 0.5

# Second waypoint (for second objective)
# ref_code x y z radius urgency
mission_add_intercept 0 -7963 37992 1.0 1.0 0.5

# Third waypoint (for third objective)
# ref_code radius urgency
mission_add_intercept 3 1.0 0.5
Loading