View Full Version : Dod Paratrooper
Wilson [29th ID]
08-18-2006, 05:02 AM
/*
DOD PARATROOPER
Created by the 29th Infantry Division
www.29th.org
www.dodrealism.branzone.com -- Revolutionizing Day of Defeat Realism
DESCRIPTION
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.
CREDITS
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.
*/
/*
CVARS
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)
CLIENT COMMANDS
getorigin - Prints current user origin to console (for development)
*/
/*
DEVELOPMENT
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:
sky 417
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
*/
Attached inside zip file:
parachute_khaki.mdl - The parachute model
dod_paratrooper.amxx - The compiled plugin
dod_forest_para.ini - An example ini file for dod_forest
Optional:
dod_paratrooper.sma - The source code
=|[76AD]|= TatsuSaisei
08-18-2006, 03:45 PM
I have helped "test", and being a skydiver myself, found this plugin to be extremely awesome !! I love this plugin, and I will be making alot of ini files (I have over 800 DOD maps) so if anyone wants an ini file made for them (if you have trouble figuring out how to make them) I would be glad to help...
dod_avalanche http://customdod.com/amxx_plugins/para_ini/dod_caen_para.ini
dod_caen http://customdod.com/amxx_plugins/para_ini/dod_avalanche_para.ini
dod_forest http://customdod.com/amxx_plugins/para_ini/dod_forest_para.ini
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "dod_paratrooper_writeini"
#define VERSION "76.0"
#define AUTHOR "TatsuSaisei"
new bool:ok2write = false
new written = 0
new mapname[64],mapininame[76]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("write_para_origin", "write_origin") // For development
register_concmd("write_para_toggle", "write_toggle") // For development
}
// For development purposes
public write_origin(id)
{
get_mapname(mapname,64)
format(mapininame, 76, "%s_para.ini", mapname)
if(ok2write)
{
new origin[3]
get_user_origin(id, origin)
client_print(0,print_center,"PARATROOPER SPAWN #%d WRITTEN TO INI FILE - Gravity will return to normal shortly !!",++written)
client_print(id, print_chat, "%i, %i, %i", origin[0], origin[1], origin[2])
log_to_file(mapininame,"%i %i %i",origin[0], origin[1], origin[2])
}
else write_toggle(id)
return PLUGIN_HANDLED
}
public write_toggle(id)
{
get_mapname(mapname,64)
format(mapininame, 76, "%s_para.ini", mapname)
if (get_user_flags(id)&ADMIN_RCON && !ok2write)
{
new origin[3]
get_user_origin(id, origin)
ok2write = true
written = 0
server_cmd("sv_gravity 0")
client_print(0,print_center,"PARATROOPER SPAWN INI FILE BEING WRITTEN - Gravity will return to normal shortly")
log_to_file(mapininame,"sky %i",origin[2] + 256)
}
else if (get_user_flags(id)&ADMIN_RCON && ok2write)
{
ok2write = false
written = 0
server_cmd("sv_gravity 800")
client_print(0,print_center,"PARATROOPER SPAWN INI FILE WRITTEN - Gravity has returned to normal now !!")
log_to_file(mapininame," ")
new iniauthor[32]
get_user_name(id,iniauthor,32)
log_to_file(mapininame,"dod_paratrooper ini file written by: %s", iniauthor)
}
return PLUGIN_CONTINUE
}
TigerMan4
09-09-2006, 12:21 PM
gravity ? the default gravity on my server is 800 ?
or does the default gravity you guys use refer to somthing else ? and not the sv_gravity ?
I want to add this plugin but I`m unsure on the custom sky stuff.
Wilson [29th ID]
09-09-2006, 12:55 PM
The gravity refers to when you are using a parachute, how quickly you fall. You have your own gravity while you are "parachuting"
The custom sky stuff...did you read the paragraph about development? What don't you understand?
TigerMan4
09-09-2006, 02:25 PM
I read it , you have to run about and see how tall the map is and then set , areas for the jump zone at said height.
then create a .ini file for each map you want to use the plugin.
I wasnt sure if para maps allready had the jump inis , or if you had to make one for every map you want to use it on.
that being the case...I think I have to make an INI for every map I think.
where do the INI files get placed ? (which folder >)
Wilson [29th ID]
09-10-2006, 12:24 AM
You have to make an ini file for every map you want to use it on (by the way, upload the ini files here so we can use them!)
Put the ini files in amxmodx/configs/maps/
Box Cutter
10-12-2006, 09:11 AM
I'm about to install this plugin and was curious if anyone had created a .ini file for dod_avalanche already to save me time. If so could you please post it. TIA.
sky 716
174, 632, 0
143, 629, 0
-150, 702, 0
-178, 684, 0
-123, 464, 0
-106, 442, 0
-71, 226, 0
-76, 192, 0
-15, -13, 0
10, -19, 0
216, 63, 0
-190, 199, 0
-52, 279, 0
-46, 287, 0
47, 418, 0
66, 421, 0
Here is an dod_avalanche_para.ini file
Credits to TatsuSaisei who made it too me :D
Thanks dude
Box Cutter
10-13-2006, 04:28 PM
Awesome, thank you nasa and TatsuSaisei.
Box Cutter
10-14-2006, 05:01 PM
This plugin is awesome and works great. I have tried it on Ava and Forest so far. I am excited to try this on other maps. Oh yeah and your getorigin works like I breeze. Still can't understand why using "status" was giving me all zeros but oh well I will be using this plugin to get the origin from now on.
plogan64
10-16-2006, 08:43 AM
I have it installed and running but don't see the parachute. Is it only visabvle to axis players on the way down? I have it set to allies on the parachute drop. Mdl is in models folder. Everything else is fine.
Box Cutter
10-16-2006, 08:55 AM
Both teams can see it, but only from a 3rd person prospective. The actual parachuter won't see his own chute.
winice
10-16-2006, 04:06 PM
were did i put the ini file because he dont run and he look very well can you help me ????
Wilson [29th ID]
10-16-2006, 04:23 PM
To answer the first 33% of your question, you put the ini file in your amxmodx/configs/maps directory
The other 66% does not make any sense. I tried babelfish but it didn't translate to human. :-P
winice
10-16-2006, 04:37 PM
you create a new dossier ? name maps in config ? but its what i do and i place the .ini in but no results im sorry im not intelligent lol !!!!!
Box Cutter
10-16-2006, 06:33 PM
you create a new dossier ? name maps in config ? but its what i do and i place the .ini in but no results im sorry im not intelligent lol !!!!!
yes you will be creating a folder (dossier as you stated) called maps in the configs folder so your path should look like amxmodx/configs/maps and you will place the _para.ini files in the maps folder.
diamond-optic
10-16-2006, 07:47 PM
he dont run and he look very well
lmfao :D
thats great
|= TatsuSaisei;605']I have helped "test", and being a skydiver myself, found this plugin to be extremely awesome !! I love this plugin, and I will be making alot of ini files (I have over 800 DOD maps) so if anyone wants an ini file made for them (if you have trouble figuring out how to make them) I would be glad to help...
Think you could zip or rar those up and help a brotha out? I am a huge custom map fan here!
TigerMan4
10-18-2006, 03:04 AM
question on the gravity.
I see in dod_ninja it says low grav and the grav is 1.0 in the sma
this plugin says that normal grav is 1.0
what is the normal grav ? so I can fix the ninja plugin to not fly all over ?
=|[76AD]|= TatsuSaisei
10-18-2006, 09:38 AM
question on the gravity.
I see in dod_ninja it says low grav and the grav is 1.0 in the sma
this plugin says that normal grav is 1.0
what is the normal grav ? so I can fix the ninja plugin to not fly all over ?
Normal gravity is 1.0. It is the same in the dod_ninja plugin. In the ninja plugin the gravity is set to 0.2 when a player becomes a ninja and that is what is making them "fly" all over the place.... try 0.7 or 0.8
Go back to the dod_ninja post for more explanation...
TigerMan4
10-18-2006, 10:35 PM
thank you thank you
Smiffy
11-05-2006, 12:50 PM
can we have a section where people can post the ini's for this plugins so that way it helps everyone and people can just look up the mapini they need for this plugin would save alot of time for us working people :P
__________________
Wilson [29th ID]
11-05-2006, 10:02 PM
Just reply to this thread and i'll put them in the initial post
Smiffy
11-06-2006, 04:29 PM
huh? :P sorry im haveing a blonde day
Wilson [29th ID]
11-06-2006, 10:36 PM
Whoever has ini files, reply to this thread with them and I will make a list in the initial post of this thread.
I'd like ini files for the para maps, like dod_glider, dod_kraftstoff, dod_donner, dod_escape(?), dod_risk, if anyone knows that map, would probably make an amazing map for this because it is so wide open, for that one I would love an ini file with the Germans as paratroopers. If I get any of them done before someone else posts them, I'll post them.
|= TatsuSaisei;605']I have helped "test", and being a skydiver myself, found this plugin to be extremely awesome !! I love this plugin, and I will be making alot of ini files (I have over 800 DOD maps) so if anyone wants an ini file made for them (if you have trouble figuring out how to make them) I would be glad to help...
dod_avalanche http://customdod.com/amxx_plugins/para_ini/dod_caen_para.ini
dod_caen http://customdod.com/amxx_plugins/para_ini/dod_avalanche_para.ini
dod_forest http://customdod.com/amxx_plugins/para_ini/dod_forest_para.ini
Are these configs set up with the Allies or the Germans as the paratroopers, or does it matter?
=|[76AD]|= TatsuSaisei
01-04-2007, 12:24 PM
all Allies so far, noone has asked for Axis to be para yet... you want some Axis coordinates ??
No, I'm fine, I did it myself, however, now I have a problem, neither this plugin, nor the mapsettings plugin are doing anything. They have both loaded, and I checked the cvars, but nothing has changed, the only thing that might have changed is the spawn points, but I'm not parachuting as an ally, and I wanted the teams to be para, but that isn't happening either. :(
Here is a list of my plugins. Could the block exploits plugin be blocking the plugin's functionality?
dod_blockexploits14_176c.amxx
dod_random_skymap.amxx
dod_forceparticlefx.amxx
deagsmapmanage230b.amxx
;cdrive_botmod.amxx
emptyserver.amxx
;dodx_tk_manager.amxx
dod_mapsettings.amxx
dod_teammanager.amxx
idlekicker.amxx
clan_tag_checker.amxx
saycmd.amxx
swear_filter.amxx
dod_paratrooper.amxx
dod_shellshock.amxx
;dod_staminahp_remake.amxx
dod_tackle.amxx
dod_fadetoblack.amxx
dod_gore_custom.amxx
dod_follow_the_wounded.amxx
Server Info
AMD Athlon 1200
512MB SDRAM
Debian Sarge 3.1 stable
Linux 2.6.8.1 custom kernel
Metamod 1.19 p28
AMX Mod X 1.76c
A bit more information, I've turned off both of the plugins' functionality in my server.cfg, and am using a map specific config to turn it on. As I said, I checked the cvars, and they are set as per my map config file, so that is doing what it is supposed to.
edit: I know what is happening now. The changes I put in the map config won't take place until I reload the map, which makes the plugins useless because I only want these plugins to be active on this map. How is it that other plugins work without having to reload the map?
slayerx
01-05-2007, 05:11 AM
is it possible to have both teams para? i tried putting both cvars but its only working for allies
=|[76AD]|= TatsuSaisei
01-05-2007, 07:31 AM
is it possible to have both teams para? i tried putting both cvars but its only working for allies
only one team or the other may fall from the sky in any given map... but not both... yet....
Well, I've got it working. If I put in the configs that it is always on, and only put the map ini file for the maps I want to use this on, after the first map changes, it works perfectly. I still think there is something screwy that needs to be fixed, but I am happy for now, and I love the plugin.
Moved post from Drek to a new thread:
http://www.dodplugins.net/forums/showthread.php?t=588
slayerx
01-09-2007, 06:24 PM
i tried the parachute plugin but took it off a day later ....i was disapointed that only one team can parachute and not both, and also ...with bots if your spawn points are all around the map as soon as you spawn bots blow you away and people get pissed and the server never fills so i took it off for now ...might try it again some time later....as for the mortar its pretty ..i put limits to two on each team and only 8 shells so people dont spam
=|[76AD]|= TatsuSaisei
01-09-2007, 07:01 PM
with bots if your spawn points are all around the map as soon as you spawn bots blow you away and people get pissed and the server never fills so i took it off for now
so make a new spawn points ini file... so players spawn in places safe from bots....
slayerx
01-10-2007, 01:38 AM
There is no open space safe from bots unless it is in the normal spawn location......and why use parachute if your just spawning in the same old place ....i had people droppin into red rooms at middle at second everywhere because realistic wise people would not always meet there targeted landing site and would drop in the middle of combat :P
What I did was kept all my spawn points on the spawning team's side of the map. Some spawns were in the old spawn area, some a bit further out, and so on up to close to the half-way point on the map. This preserves some of the push play style of the map while still changing it enough to make it interesting. I find it is both an advantage and a disadvantage for the parachuting team. There is a chance you will spawn farther forward, but you don't spawn instantly, and you are vulnerable in the air. I like it - makes things interesting without destroying the balance of the map.
{SR} *Raggy*
02-03-2007, 10:29 AM
I've been trying to get this plugin to work on only one map on my server and that is dod_crazyjump... How would I go around doing that... Do I have to get the ini files? I've seen this on a server I realy love on the very same map and the spawn areas aren't changed... How would I do that without changing the spawn points?
God I hate when I have to ask questions like this... I always feel stupid to ask these questions...
=|[76AD]|= TatsuSaisei
02-03-2007, 11:25 AM
I've been trying to get this plugin to work on only one map on my server and that is dod_crazyjump... How would I go around doing that... Do I have to get the ini files? I've seen this on a server I realy love on the very same map and the spawn areas aren't changed... How would I do that without changing the spawn points?
God I hate when I have to ask questions like this... I always feel stupid to ask these questions...
For this plugin you DO need to use an ini file... the point of this plugin is for an auto chute to deploy... you have no control over its deployment.... therefore you would HAVE to move the spawn points to in the air away from the high landing... otherwise simply use the amxx ported parachute plugin that lets you use the USE button to deploy a chute...
{SR} *Raggy*
02-03-2007, 12:29 PM
I'm guessing that's on the amxx forums... I'll have a look at that anywayz... Thanks for that Tatsu
=|[76AD]|= TatsuSaisei
02-03-2007, 01:07 PM
I'm guessing that's on the amxx forums... I'll have a look at that anywayz... Thanks for that Tatsu
no just buried on page 2 here....
http://www.dodplugins.net/forums/showthread.php?t=259
Sneaker
08-07-2007, 01:18 AM
Im new at this and still dont get it. Can someone contact me and work me through it. Once I understand how to do it, it will be a breeze. I installed everything and type in console. When I type getorigin while in forest it shows 3 origins. But dont know what else to do. Please help. I have been dying to use this plug in. Thanks........
Wilson [29th ID]
08-07-2007, 11:23 AM
No, it shows one origin - 3 coordinates.
X, Y, and Z.
knife108
08-22-2007, 10:53 AM
L 08/22/2007 - 18:58:03: [AMXX] Run time error 10 (plugin "dod_paratrooper.amxx") - debug not enabled!
L 08/22/2007 - 18:58:03: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
should i enable the debug mode on dod_paratrooper.amxx ?
and will it increase the CPU load ?
diamond-optic
08-22-2007, 06:26 PM
enabling debug on one or two plugins or so should not cause any performance issues...
and it will greatly help to solve the error (as it will tell exactly what and where in the plugin its happening)
Price [508th PIR]
07-12-2008, 06:45 AM
I have sturm and charlie ini files but i cant post attachments.
Price [508th PIR]
07-17-2008, 02:37 PM
Wilson, is there a way to make it random? Because with us being a realism unit, all my guys HATE spawning in the same exact location over and over again....
John Rambo [508th PIR]
07-18-2008, 06:52 PM
Does this make the Allies models Paratroopers? Cause I'm looking for something that does that
dlambert1989
07-22-2008, 11:03 AM
To make a team paras you have to get the Map Settings plugin.
vBulletin® v3.8.6, Copyright ©2000-2010, Jelsoft Enterprises Ltd.