Home   Help Search Login Register  

Author Topic: Need some Scripter willing :-)  (Read 1005 times)

0 Members and 1 Guest are viewing this topic.

Kilo11

  • Guest
Need some Scripter willing :-)
« on: 28 Aug 2003, 01:08:15 »
Hello everyone, more so to the andavnced scripters out there.  Here is my problem, I am currently making a map (Sorry, can't give out any information on it), but I want 2 simple/hard (I dont know, don't ask me, I dont script).  I will do my best to describe what I need, so any *willing* scripters can help me out, that is if any one chooses to...lol.  Anyways, here it goes:

First:
I need to have a script that will give a team (on-line) during a game to para-drop anywhere they would like on the map every 20 minutes.  I want a few abilites to come with this script:

  • Loop-type script allowing a para-drop for all Resistance players currently playing in the game.
  • Map-click option, enabling the leading oficer/commander to be able to click anywhere on the map to para-drop.
  • I do NOT need a plane to para-drop, just simply have the entire group spawn to the indicated point (officer selected) on the map as "paratroopers."
  • So bassically, the entire Resistance squad can be para-dropped anywhere on the map every 20 minutes by clicking on the map.

NOTE: This is the script I need most, so if you are willing to do any of these please focus on this one! :-)

Second:
I will need a respawn-script that only respawns a certain amount of times.  

  • After a certain amount of deaths, script will terminate.
  • Easy to edit variables, such as the times you are allowed to die.
  • Compatible with vehicles, or seperate script for vehicles.
Scripters, I will greatly greatly appreciate all help you give me with these.  Even directing me to a scripter you know will be greatfull.  Also, all scripts used will get *full credit* in my mission. Thank you.

-=Kilo=-

Kilo11

  • Guest
Re:Need some Scripter willing :-)
« Reply #1 on: 29 Aug 2003, 22:44:07 »
Any one?

-=Kilo=-

GeneralCoder

  • Guest
Re:Need some Scripter willing :-)
« Reply #2 on: 30 Aug 2003, 16:33:17 »
Any one?

-=Kilo=-

That second one might be imbossible becose you can't actualy prevent some soldiers respawing and revive the others. You can only set when and where.

Sorry if im mistaking!

But on a another though you could but them to safezone to wait... Hmm ya, this is very intresting and I wish I could help but I don't have the knowledge right now so maybe in the future. (if I learn how to send strings and arrays over net)

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Need some Scripter willing :-)
« Reply #3 on: 01 Sep 2003, 16:05:30 »
As Gen Coder stated, you cant disable the respawn system, but what you can do is have the players relocated to a Out of the way place after they have respawned so many times

In the system below, you stipulate how many times you want to allow a player to respawn by giving "REVIVE" a value, in this case 3 (3 respawns allowed)
If you want to change this in future missions, you simply change the revive value in the init.sqs and therefore dont need to change anything in the script

In this system when the player is reborn for the 4th time he is relocated to the position of the empty marker called "Prison", his weapons are removed and then he sees a cutscene of himself and is frozen,  hence cannot play anymore

There are other possibilities, if its a coop its more interesting to have these imprisoned players run the "Spectator" script where they can choose a cam following a player that is still in the game. The spectator script will be on OPfpec somewhere

NB>> it's a good idea to always have glocal variable values declared in the init.sqs, then if you ever want to change a setting, you simply need to edit the Init.sqs, nothing else, this makes things easier when beta testing etc


In the init.sqs type the following
Revive=3
[]exec "Respawn.sqs"

I take it this mission is to be run on a dedicated server, if so create a gamelogic named "Server", its location isn't important
?(local server):exit is used to stop the server running the respawn script, you just want players to run it


Create an empty marker named "Prison" and place it on an island well away from the fighting
and then create the following script in notepad and save it as "Respawn.sqs"

;;Respawn.sqs
?(local server):exit
@time>1
#START
@ !alive player
Revive=Revive-1
@ alive player
?(revive<=0):goto"IMPRISON"
goto "START"

#IMPRISON
removeAllWeapons player
player setPos (getmarkerpos "Prison")
~0.5
_pos = getpos player
showcinemaborder true
_camera = "camera" camCreate _pos
_camera cameraEffect ["internal", "back"]
_camera camSetTarget player
_camera camSetRelPos [1,1,1.25]
_camera camCommit 0
@camCommitted _camera
@time>= param1

#KILLCAM
player switchCamera "INTERNAL"
Player cameraeffect ["terminate","back"]
camDestroy _camera
showcinemaborder false
exit

_____________________________________________________________________________________

Veh Respawn, search the Ofpec editors depot for vehicle respawn scripts, there are numerous

Depbo any halo map to see how they respawn in the air with parachutes
« Last Edit: 01 Sep 2003, 16:13:45 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Kilo11

  • Guest
Re:Need some Scripter willing :-)
« Reply #4 on: 02 Sep 2003, 23:29:28 »
Thanky you very much.  I put in the script and the init, but I can not get the script to run.  When I die, I simply cecome a bird.  I aslso made a descrition.ext with:

RequiredVersion=1.91;
onLoadMission=ICM
onLoadIntro=Hoot;
onLoadIntroTime = false;
onLoadMissionTime = false;
showCompass=1;
showGPS=1;
showMap=1;
showNotepad=1;
showWatch=1;
respawn=3;
debriefing=1;
disabledAI=1;
respawndelay=300

But that did nothing to help it.  I have a server tgamelogic, the empty marker named Prison.  SO I must be missing something.  Any ideas?  Thank you gaain so much.


-=Hoot=-
« Last Edit: 02 Sep 2003, 23:30:36 by Kilo11 »