Alliedassault

Alliedassault (alliedassault.us/index.php)
-   Tech Questions & Problems (alliedassault.us/forumdisplay.php?f=8)
-   -   Death Match Scr Files : Attn CrowKing / Dog Meat (alliedassault.us/showthread.php?t=9505)

Judas 09-25-2002 07:44 PM

Death Match Scr Files : Attn CrowKing / Dog Meat
 
When is the mohdm1,2,...etc.scr file called ? I understand that it is at least called once when the map loads but is it called each time the player dies and respawns and if not what handles how the play will spawn each time ?

thanks

Judas

[img]http://mohaa.cact-sd.org/aasigs/judas-sig1.jpg[/img]

Overlord [K1] 09-26-2002 07:02 AM

The location of the spawn points when the map is created.

I have also played with this stuff and I have had a respawning hunt OBJ map. It makes for a furiuos gun fight as the Allies cannot win unless they take the objective becuase axis will just keep respawning.

Now thats OBJ. I beleive the game reads the scr file when it loads the map for the first time after a map change.

Crow King 09-26-2002 04:32 PM

Game scripts are generally event driven, so their flow of control and when they're called have a lot to do with what is occuring in the map.

The map script is first called when the server loads the map, but before anything (including spawning) happens. When it runs after that depends on what is in the script, usually based on some event or trigger (ie when the player activates the bomb, run this part of the script, etc.). Some parts of the script will run continously while the map is active - this is how things like DogMeat's DMZDogTag are possible.

Some elements of the game are part of the map, such as spawn points. It is not necessary for the script programmer to have to handle every little detail (and thus keep his sanity). The downside to this is that some elements of a map cannot be manipulated in script. They can only be changed in the mapping tool and must be compiled. This has a lot to do with the graphics and performance, too, but it does limit some of the things you can accomplish in a script.

But the behavior of spawn points is controlled by the map and cvars. Scripts can modify cvars, so they can in some ways impact spawn points. But I don't know if you can dynamically create / destroy spawn points in script. Some of the mappers that hang around here can probably answer that one.

Judas 09-26-2002 09:45 PM

Thanks for the reply ck.

The reason i asked is I had the idea for a mod that would somehow delay the respawn time in tdm/dm games, kinda like in rtcw or bf1942.

If you think this is possible maybe you could take a stab at it or point me in the right direction...


thanks
Judas


All times are GMT -6. The time now is 11:05 AM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.