Jump to content
Sign in to follow this  
aviel

Respawning?

Recommended Posts

if someone has a:

1. good

2.working

3.easy to make

respawning script. i could use it.

i play opf in my lan with my brother, and always when i kill him we need to reassign, becuse if not he will end up for the rest of the game as a bird,

pelase someone, post a good working easy to install script!

Share this post


Link to post
Share on other sites

here is your script

filename: description.ext

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">respawn = 3

tounge_o.gif

Share this post


Link to post
Share on other sites
here is your script

filename: description.ext

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">respawn = 3

tounge_o.gif

rock.gif?

Share this post


Link to post
Share on other sites

aviel explain better what you want,are you west and brother east,are you both in a group etc etc,,no one really know what you are after,can you make an description ext? or do you want one made for you?

Share this post


Link to post
Share on other sites
aviel explain better what you want,are you west and brother east,are you both in a group etc etc,,no one really know what you are after,can you make an description ext? or do you want one made for you?

ok,

i am for a GLOBAL respawn script for east and west,

without any blackouts and stuff, only a respawn for a multi player game,

Share this post


Link to post
Share on other sites

rock.gif I gave you the answer.

you can also insert

respawndelay=20

in there.

Share this post


Link to post
Share on other sites

That is what description.ext is for!

You can make it instant, base, group etc.

For base, put

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Respawn = "BASE";

RespawnDelay = 5;

And make marker's called

"respawn_east"

and

"respawn_west"

where you want them to spawn. Tadah!

Share this post


Link to post
Share on other sites

what is "description.ext" and if it has to be made, how?

as you have probably worked out im new to all this

Benny212

Share this post


Link to post
Share on other sites

In your mission folder, make a txt file and name it

Description.ext

make sure there is no .txt at the end.

Then add that shtuff and you can spawn and stuff.

Make sure you don't have a typo else your game will crash.

And you have to reload your mission every time you save it (description).

Share this post


Link to post
Share on other sites

Easiest way to make a "proper" description.ext is use either notepad or wordpad and save as......

ext.JPG

Using the "" forces the exact filename within the "" no matter what "save as type" is displayed.

Share this post


Link to post
Share on other sites
Easiest way to make a "proper" description.ext is use either notepad or wordpad and save as......

http://www.2and2.net/Uploads/Images/ext.JPG

Using the "" forces the exact filename within the "" no matter what "save as type" is displayed.

I had no idea that you could do it that way as well. Thanks for the tip!

Share this post


Link to post
Share on other sites

LOL no probs, it's an old tip going way back to the earliest days of mission editing smile_o.gif

Share this post


Link to post
Share on other sites

thnx i will try that has soon as i can get hold of notepad

btw is there anyway to respawn with the weapons you start off with and in a parachute

Share this post


Link to post
Share on other sites
soon as i can get hold of notepad

notepad comes with windows, click start>run, type notepad, click ok....

Share this post


Link to post
Share on other sites

i have had a load of viruses on my comp and they seem to have deleted notepad thats why i need to get it

Share this post


Link to post
Share on other sites

A good respawn to use is Doolittle's revive respawn.

All the instructions are in the readme.... i think.

If you have any queries just ask at the forum or email me at aooksofp@btinternet.com

Revive Respawn: Download

Aook smile_o.gif

Edit: If the link doesn't work...drag the download link to the address bar of your browser. (Freewebs is crap..goddamnit  crazy_o.gif )

Ps: Sorry admins if this post seems to be popping up all over the place.....i answered 3 questions with it - all about respawning tounge_o.gif

Share this post


Link to post
Share on other sites

it would work but i only have version 1.30 and its says you need version 1.85

thnx anyway as i should be getting resistance in a few days so i will be able to get version 1.85

btw is there any way to respawn empty vehicles when they are destroyed

Share this post


Link to post
Share on other sites

I use doolitles vehicle respawn although mine is different as i emailed him to solve the dead drivers/gunners etc from stopping vehicles respawning. He solved it bless him. Anyone who wants it, here it is. It will delete dead drivers etc instantly enabling the vehicle to respawn with drivers etc.

Just put this in a vehicles init line [this] exec "vehicle.sqs" or [this, 30] exec "vehicle.sqs"   Get the idea?

Thanks to Doolittle.

vehicle.sqs

requiredVersion "1.91"

? not local Server : exit

_obj = _this select 0

_pos = getPos _obj

_dir = getDir _obj

_type = typeOf _obj

_group = group _obj

_crew = []

"_crew = _crew + [typeOf _x]" forEach crew _obj

"_x addEventHandler [""Killed"", {(_this select 0) removeAllEventHandlers ""Killed""; (_this select 0) setPos getPos (_this select 0); deleteVehicle (_this select 0)}]" forEach crew _obj

#clear

_t = 0

#alive

~3

? not alive _obj : _delay = 120; goto "notalive"

? fuel _obj == 1 : goto "clear"

? count crew _obj != 0 : goto "clear"

? _t == 0 : _t = _time + 110

? _t > _time : goto "alive"

"_obj removeMagazine _x" forEach magazines _obj

_obj setFuel 0

_obj setDamage 1

_delay = 10

#notalive

~_delay

deleteVehicle _obj

~1

_obj = _type createVehicle _pos

_obj setDir _dir

? count _crew < 1 : goto "clear"

Soldier = []

_crew select 0 createUnit [_pos, _group, "Soldier = this"]

Soldier moveInDriver _obj

Soldier doMove getWPPos [_group, 1]

Soldier addEventHandler ["Killed", {(_this select 0) setPos getPos (_this select 0) removeAllEventHandlers "Killed"; deleteVehicle (_this select 0)}]

? count _crew < 2 : goto "clear"

Soldier = []

_crew select 1 createUnit [_pos, _group, "Soldier = this"]

Soldier moveInGunner _obj

Soldier doMove getWPPos [_group, 1]

Soldier addEventHandler ["Killed", {(_this select 0) setPos getPos (_this select 0) removeAllEventHandlers "Killed"; deleteVehicle (_this select 0)}]

? count _crew < 3 : goto "clear"

Soldier = []

_crew select 2 createUnit [_pos, _group, "Soldier = this"]

Soldier moveInCommander _obj

Soldier doMove getWPPos [_group, 1]

Soldier addEventHandler ["Killed", {(_this select 0) setPos getPos (_this select 0) removeAllEventHandlers "Killed"; deleteVehicle (_this select 0)}]

goto "clear"

Anyone dont understand it i will email you a small demo. Bless me. smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×