saving in game, possible?

Discussion in 'Mapping Questions & Discussion' started by martijntje, Nov 15, 2009.

  1. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    Is it possible to somehow hack/mod tf2 to allow you to same the state of a level a-la portal/hl2/gmod.

    I know this isnt normaly possible, as tf2 is a multiplayer-only game.

    Might it be possible for a server to write the state of all entities to a (cfg) file and later on reload the map and restore the entities properties?

    Think of tr_walkway, but you wanting to save the settings. like say you want to have a savegame for airblast training.

    I would prefer it if other players could join after you loaded a game.
    I would not mind having to overhaul my map to get this working.

    Is it possible (All server-sided, client doesnt have to mod tf2 himself) to get this done, and what would it take?
     
  2. gamemaster1996

    gamemaster1996 L13: Stunning Member

    Messages:
    1,065
    Positive Ratings:
    131
    Would you be able to create a script to copy hl2 console commands to tf2?
     
  3. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    using the console commands hl2 uses for saving, results in a little error message "cannot save in multiplayer games"

    the command is "save" btw
     
  4. Owlruler

    Owlruler L12: Fabulous Member

    Messages:
    964
    Positive Ratings:
    271
    it's relatively easy to do if you want to be able to 'save' in a single game, but impossible if you want to exit and come back.

    EDIT: looking back at your post, no, it can't be done without modding.
     
  5. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
    Possible with sourcemod plugin.