Results 1 to 6 of 6

Thread: dmprecacheX2?

  1. #1
    Developer Todesengel's Avatar
    Join Date
    Dec 2013
    Location
    St. Louis, Missouri, USA
    Posts
    276

    Default dmprecacheX2?

    I've noticed that in a completely stock (from US retail CDROM) install, all the map scripts *AND* the corresponding map precache scripts... call global/dmprecache.scr. So for example.... dm/mohdm1.scr calls dmprecache between prespawn and spawn... but dm/mohdm1_precache.scr also calls global/dmprecache.scr. Since the game engine automatically starts both scripts when a map starts... Is there a reason it's being called twice????

    Part of the reason for this question is curiousity, but part of it is work I'm doing on some of the SP maps to clean up the conversion to MP. These maps don't call dmprecache (in stock) in either place, so if I understand the above I can determine which place (or both) to put that.

    T

  2. #2
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    there is another place where dmprecache is being called too, can't remember where tho.
    maybe the devs wanted to move all dmprecache calls to map_precache files and forgot to remove the call from map.scr file ?

  3. #3
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    or maybe there are different models to be cached for every map so the wanted to separate it.

  4. #4
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    Just found out, it was my second guess,
    in spearhead maps call dmprecache in map.scr and in map_precache.scr call cache commands for map specific models.

  5. #5
    Developer Todesengel's Avatar
    Join Date
    Dec 2013
    Location
    St. Louis, Missouri, USA
    Posts
    276

    Default

    It would seem logical to me that mapname_precache.scr would cache models specific to just that map, and global/dmprecache would be caching models used in all maps. But again... why call it in both places. It's definitely getting called twice for stock DM maps....

  6. #6
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    in spearhead it's not called in map_precache.
    guess mohaa devs were tight on time ?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •