Alliedassault           
FAQ Calendar
Go Back   Alliedassault > Lounge > Tech Questions & Problems
Reload this Page Death Match Scr Files : Attn CrowKing / Dog Meat
Tech Questions & Problems Ask our resident experts about any military shooter game server administration and other technical issues.

Reply
 
Thread Tools Display Modes
Death Match Scr Files : Attn CrowKing / Dog Meat
Old
  (#1)
Judas is Offline
Senior Member
 
Posts: 8,792
Join Date: Apr 2002
Location: Hans-AlbinVonReitzenstein
 Send a message via ICQ to Judas Send a message via AIM to Judas Send a message via MSN to Judas  
Default Death Match Scr Files : Attn CrowKing / Dog Meat - 09-25-2002, 08:44 PM

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]
  
Reply With Quote
Old
  (#2)
Overlord [K1] is Offline
Senior Member
 
Posts: 419
Join Date: Jan 2002
Location: UK London
   
Default 09-26-2002, 08: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.
  
Reply With Quote
Old
  (#3)
Crow King is Offline
Senior Member
 
Posts: 542
Join Date: Jan 2002
   
Default 09-26-2002, 05: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.
  
Reply With Quote
Old
  (#4)
Judas is Offline
Senior Member
 
Posts: 8,792
Join Date: Apr 2002
Location: Hans-AlbinVonReitzenstein
 Send a message via ICQ to Judas Send a message via AIM to Judas Send a message via MSN to Judas  
Default 09-26-2002, 10: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
  
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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