Readme for Mapfact's Respawn v3.0 =========================== I. Description II. Implementation III. Options IV. Additional Features V. Sources & Contact Info VI. Known Bugs VII. Version History VIII. Credits I. Description Mapfact's Respawn is a modified and limited instant respawn. After playing OFP's normal respawns long enough many people were looking for a compromise between an infinite and no respawn. With Mapfact's Respawn the mission maker can set the respawn count to every number he wants. Instead of instantly respawning another player of the same side has to come close to the dead body to respawn the dead player. After the set respawns are used, the spectating script is started automatically (when it is not switched off by the mission maker). II. Implementation 1. The Easy Way: You Are About to Make a New Mission - copy the whole MAP_respawn folder, the init.sqs and the description.ext (all three from MAP_respawn3Template.intro) into your mission's directory - copy the two triggers, the civilian and the four respawn markers (from MAP_respawn3Template.intro) into your mission on a lonely island or somewhere else far away from the player's objectives - change the options in the MAP_respawn\MAP_respawnOptions.sqs if you want - you have to write all player's names in the array which calls the respawn scripts in the init.sqs! - please put the two parts from the briefing.txt in your briefing (3 lines under "Main", the rest just before ) Check MAP_respawn3Template.intro if you did not understand this. 2. The Medium Way: You Already Have a Mission - copy the whole MAP_respawn folder (from MAP_respawn3Template.intro) into your mission's directory - copy the exec for the respawn scripts from the init.sqs (from MAP_respawn3Template.intro) into your init.sqs on the very beginning - copy the content of the description.ext (from MAP_respawn3Template.intro) into your description.ext on the very beginning (check if you defined one class two times after that) - copy the two triggers, the civilian and the four respawn markers (from MAP_respawn3Template.intro) into your mission on a lonely island or somewhere else far away from the player's objectives - change the options in the MAP_respawn\MAP_respawnOptions.sqs if you want - you have to write all player's names in the array which calls the respawn scripts in the init.sqs! - please put the two parts from the briefing.txt in your briefing (3 lines under "Main", the rest just before ) Check MAP_respawn3Template.intro if you did not understand this. 3. The Hard Way: You Want to Make The Respawn Settings Definable Through Parameters (this is only an example, you can do it in lots of different ways) - install the respawn as described in 1. or 2. - put something like this in your description: titleParam1=respawn count; valuesParam1[]={0,1,2,3,4,5}; defvalueParam1=1; textsParam1[]={0,1,2,3,4,5}; titleParam2=heal?; valuesParam2[]={0,1,2}; defvalueParam2=1; textsParam2[]={medic + medic autoheal, medic, all}; - change the init.sqs: [param1,yourPlayerNameArray] exec "MAP_respawn\MAP_respawnOptions.sqs" - change the MAP_respawn\MAP_respawnOptions.sqs: ;##4 and ;##5 of MAP_respawn\MAP_respawnOptions.sqs MAP_respMedics = ["Soldier_WMedic"]; MAP_respMedicsAutoHeal = true ? param2 == 1: MAP_respMedicsAutoHeal = false ? param2 == 2: MAP_respMedics = []; MAP_respMedicsAutoHeal = false Check MAP_respawn3TemplateParam.intro if you did not understand this. III. Options Check the MAP_respawn\MAP_respawnOptions.sqs for options. You have 20 options here are the shot descriptions (same as in the init.sqs): ;##1 put all player's names in the brackets; like this: [soldier1, soldier2, soldier3] call _f ;##2 adjust the number of allowed respawns ;##3 MAP_noKEG = true means that Kegetys' spectating script won't start after the allowed respawns; instead you'll get a cam locked on the dead body ;##4 if you put any unit types (type strings, not names!) in this array, you can only get healed by units of the determined type(s) ;##5 if you set this value true, the above defined medics get healed automatically, if it is false they have to get healed by another medic ;##6 if you set this value > 0 dead players really die (that they can't get respawned anymore) after this period (in seconds) when they are not healed/respawned before ;##7 here you can choose the anim that the healing soldier is going to perform ;##8 this value defines the distance (approx.) of the camera to the "dead" body ;##9 define how often the player has to heal someone until he gets an extra respawn; 0 means no additional respawns ;##10 if this is true, you won't get more respawns than you had in the beginning ;##11 with this variable you can define when (after how many seconds) a marker gets beamed to the dead player; 0 means this feature is switched off ;## if you switch it on, you have to put markers on the map, close to the dummys; you have to call them MAP_respMarker_0, MAP_respMarker_1, ... (number of playable units - 1) ;##12 add further eventhandlers in this array, if you want to have them added to the player after respawning ;##13 define friendly sides (the side of the player and civilian and/or resistance) ;##14 define how many respawns a teamkill (shooting or nading your own side/civilians) costs ;##15 if this is zero, the "dead" player won't call for help; if it is >0, it determines after which delay the player will call (+- 10; in s) ;##16 here the sounds are defined (see above) ;##17 put more class names in this array if you use other rocket launchers than the standard ones (1st array: type of ammo, 2nd array: type of launcher1, type of ammo for launcher1, type of launcher2, type of ammo2,...) MAP_respRocketLauncherAmmo = ["RPGLauncher", "LAWLauncher", "JAM_M72Rocket", "JAM_M72AARocket", "JAM_M72ALLRocket", "JAM_M72APRocket", "JAM_RPG7Rocket", "JAM_RPG7AARocket", "JAM_RPG7ALLRocket", "JAM_RPG7APRocket", "JAM_AT4Rocket", "JAM_AT4AARocket", "JAM_AT4ALLRocket", "JAM_AT4APRocket", "CarlGustavLauncher", "AT4Launcher", "AALauncher", "9K32Launcher"] MAP_respRLAddons = ["SUCHRPG16d", "SUCHRPG16dHE", "SUCHRPG16d", "SUCHRPG16dAT", "SUCHsmawLauncher", "SUCHsmawAT", "SUCHsmawLauncher", "SUCHsmawHE", "SUCHJavelinLauncher", "SUCHJavelinMag", "lsr_smawLauncher", "lsr_smawAT", "lsr_smawLauncher", "lsr_smawHE", "RHS_RPG22", "RHS_RPG22Rocket", "RHS_RPG7V", "RHS_PG7VRRocket", "RHS_RPG7V", "RHS_TBG7VRocket", "RHS_RPG7V", "RHS_PG7VLRocket", "FDF_66kes88Launcher", "FDF_66kes88LauncherMag", "FDF_66kes75Launcher", "FDF_66kes75LauncherMag", "FDF_55s55Launcher", "FDF_55s55LauncherMag", "FDF_ItOhj78Launcher", "FDF_ItOhj78LauncherMag", "FDF_ItOhj86Launcher", "FDF_ItOhj86LauncherMag", "FDF_apilasLauncher", "FDF_apilasLauncherMag"] ;##18 (beta) add more civilians here, maybe it helps if you're making a mission with many players ;##19 write the type of an object here, if you want to replace the body of a dead guy, for example "GraveCross1" ;##20 if true, you can take the weapons of a dead player even if you've chosen to replace him with an object (see #19) ;##21 adds the value to the healer's rating ;##22 if true, you can play with AIs in your group, BUT: if a player disconnects, he will remain alive as AI! ;##23 if true, you'll get some basic information about your respawn status on startup and after respawning IV. Additional Features Here are some features (two right now, maybe some more in future), which don't refer to the respawn, but they're nice anyway. MAP_respHelper: The variable MAP_respHelper publicly contains the healing player for 2.7 seconds (or shorter, if somebody else heals meanwhile), this can be used to reward healing players. MAP_respTeamkiller: The variable MAP_respTeamkiller publicly contains a player when he killed someone in the team for 2.7 seconds (or shorter, if somebody else teamkills meanwhile), this can be used to punish teamkilling players. MAP_markers.sqs: This script holds a marker on every player's position, the marker disappears when a player is dead and comes back when he respawned. Add a marker for every player (MAP_player1m, MAP_player2m, ...), name the players from soldier1 to soldier12 and exec the MAP_markers.sqs in the init.sqs. It is important that soldier1 is the first in the group, soldier2 the second etc! V. Sources & Contact Info a) Sources Mapfact's Respawn v3.0: ftp://www.gamepark.cz:8021/ofpd/_hosted/mapfact/missionen/mapfact/resp3.0/MAP_resp3_templates.rar Demomission pack: ftp://www.gamepark.cz:8021/ofpd/_hosted/mapfact/missionen/mapfact/respdemos/MAP_resp3_demo.rar b) Contact Info Mail me: ; or post at www.mapfact.net/forum: http://www.mapfact.net/forum/viewtopic.php?t=5520 VI. Known Bugs *sometimes you get another rocket as you had before getting killed, this happens only if a rocket launcher can shoot different types of rockets *your mag is full again after respawning If you find more bugs, please report them to me: VII. Version History v3.0, 2.5 and 2.0 by raedor v1.0 by JörgF. New in v3.0: *fixed many bugs from the instable v2.5 *changed: the options of the respawn no longer fill up the init.sqs *added: possibility to show information about your current respawn status (#23) *added: some functionality to KEG's scripts *added: possibility to use more respawn units (#18) *added: possibility to replace really dead bodys with grave crosses (or any other object) (#19) *added: possibility to add some points in the rating for healing mates (#21) *added: MAP_respHelper variable (check readme) *added: MAP_respTeamkiller variable (check readme) *added: marker script that marks players as long as they're alive New in v2.5: *fixed various smaller things *fixed: #7 works now correctly *added: after x healings the healer gets a new respawn (#9, #10) *added: markers after x seconds to show where the injured player is (#11) *added: you can define some mission-relevant EHs, which get globally reattached to the player after respawning (#12) *added: if you kill civilians or team mates you'll have x respawns less (#13, #14) *added: the injured player calls for help (#15, #16) *added: MAP_Rucksack compatibility New in v2.0: *scripts rewritten from scratch *if someone disconnects his AI will disappear instead of cleaning the rest of the island alone *due to better netcode the respawn should also work with higher pings *players dying in a short time should be no problem *spectating script included *it is easy to use this script for more than one group now VIII. Credits JörgF. for v1.0 of the respawn Kegetys for his spectating script BadAss for many long hours of testing MCPXXL who sponsored a test server, had many (all?!) ideas for new features and tested with me sniping-jack & Flashpoint_K for some long hours of testing the whole Mapfact team for an intense test session Medicus (and GDT) who wasn't bothered by uploading lots of beta versions when our mapfact server was down; he also tested the respawn Leon, who showed me v1.4 of KEG's spectating script Rudedog for some good ideas Q for testing + an idea for an improvement Dschulle, Lester, Rastavovich & vektorboson for being good and communicative german Poseidon-cracks Spinor and hardrock for their command references Marco, Bolek and the rest of ASC for testing with MCPXXL and me Thanks to our external testers: Llauma hardrock Albert Schweizer DONNERGOTT King Homer ]wolf[-]falke[ Thanks to the guys who gave me the permission to use their missions as demo missions: Medicus Lenin Eizei And also to those who did not respond on my request: Blake Nagual Inef