Created by the 29th Infantry Division
www.dodrealism.branzone.com -- Revolutionizing Day of Defeat Realism
This plugin allows a designated team to parachute down to the ground
as they spawn in a random location on the map. The new spawn locations
are determined in an .ini file for each map this is used on. You can
set which team are the paratroopers and how fast they fall.
This plugin has been modified from my realism version which allows set
sectors each containing several spawn points that rotates sectors -
used for realism rather than public play.
nightscream (borrowed code & model from parachute plugin)
=|[76AD]|= TatsuSaisei (reskinned model for WWII authenticity)
Code has been commented in case you need to make changes.
dod_paratrooper 0 - Enables or disables paratrooper mode
dod_paratrooper_team 1 - Designates which team are paratroopers (Allies: 1 - Axis: 2)
dod_paratrooper_gravity 0.09 - Sets falling gravity (Regular gravity is 1.0)
getorigin - Prints current user origin to console (for development)
Attached inside zip file:
Each map you'd like to have paratroopers enabled on must have its own
.ini file, named whatever the map name is with _para.ini at the end.
For instance, dod_forest_para.ini for the map dod_forest
The ini file should contain several lines of coordinates for the map.
The development is actually extremely easy and takes about 3 minutes
for each map. Simply bind a key to the console command "getorigin" and
walk around the map finding spawn points. I reccomend about 16 points
because day of defeat picks the point from top to bottom and doesn't
use that many.
Once you have selected all the points and pressed the getorigin bind for
each one, copy and paste what was printed in your console to a text file.
It should be about 16 lines of tri-coordinates (origins). These are your
spawn points. Note, steam's "copy" function sometimes cuts off the last
few characters so make sure to check.
To find the "sky" in your map, set sv_gravity to 0 and jump to the highest
point on the map. Hit the getorigin bind and look at the third number in
your console. Roam around the map and make sure the sky is equal in all
areas. Some maps have them different, so make sure you choose the lowest
one to be safe. Subtract about 5 from the lowest sky value to be safe and
make the top line in your .ini file display it. For example if it were 417
it would read:
at the top of your ini file (on its own line). This means all of the spawn
points you find do not have to be in the sky. This also means that you can
theoretically use this plugin without parachuting - just to modify spawns.
If this confuses you, look at the example .ini file that comes with this
plugin for dod_forest
parachute_khaki.mdl - The parachute model
dod_paratrooper.amxx - The compiled plugin
dod_forest_para.ini - An example ini file for dod_forest
dod_paratrooper.sma - The source code