executing client commands

Discussion in 'Mapping Questions & Discussion' started by Pendaz, Jan 8, 2013.

  1. Pendaz

    Pendaz L2: Junior Member

    Messages:
    60
    Positive Ratings:
    0
    I know valve have blocked basically all client commands from being executed from the server


    I'm trying to build an achievement/idle map for my idling community, i want the map to force the clients to attack at set intervals (every 1 second for example)

    I've managed to achieve this with a point_clientcommand, this works when the map is run locally, but obviously due to the valve imposed restrictions it wont work when the maps running on my server.


    So now i direct your attention to a (horribly made) idle / achievement map here:
    http://gamebanana.com/tf2/maps/162185

    this map, when run on a server, gives you the option to "press f5 to autofire, press f6 to stop autofire"

    so this tells me it must be possible, but how?

    any help / nudge in the right direction would be much appreciated :)


    -Pendaz
     
    Last edited: Jan 8, 2013
  2. Micnax

    aa Micnax I maek map

    Messages:
    2,056
    Positive Ratings:
    1,383
    Valve imposed restrictions? What like? You should be able to do it normally (and if not, try having the command setting sv_cheats to 1)
     
  3. Pendaz

    Pendaz L2: Junior Member

    Messages:
    60
    Positive Ratings:
    0

    i'm talking about the restrictions valve have put on the server executing commands on a client


    I never thought of setting sv_cheats, will give it a try thanks :)
     
  4. Pendaz

    Pendaz L2: Junior Member

    Messages:
    60
    Positive Ratings:
    0
    sv_cheats will disable achievements on the server, which is the point of the map lol


    any other suggestions?
     
  5. henke37

    aa henke37

    Messages:
    1,890
    Positive Ratings:
    443
    It is basic protection of the client from hostile servers. Some commands are outright dangerous. It would be extremely bad if a server could serve a map that bundled a dll that it forced the client to execute upon map load.
     
  6. Pendaz

    Pendaz L2: Junior Member

    Messages:
    60
    Positive Ratings:
    0
    i know this


    but its besides the point, the map will be running on my own private idle servers anyway...


    i simply want to be able to have the map execute a +attack command on each client...


    and if you look at the map in my original post you'll find a map that already does what i need to do - problem is i can't work out how
     
  7. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    You can use BSPSource to decompile the map and examine it, like I (unfortunately) did. It uses point_servercommands to fire timers, which then make the text appear, among other effects.

    I said unfortunately because the map has no func_details, was made on grid 1, and is entirely Minecraft-textured.
     
    • Thanks Thanks x 3
  8. Pendaz

    Pendaz L2: Junior Member

    Messages:
    60
    Positive Ratings:
    0


    I did this also, but after decompiling it and loading it in hammer i still wasn't able to work it out

    could you give me a little more detail? maybe you could add me on steam to discuss?


    Thanks
     
  9. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    Working out how that logic works is really just understanding what each individual entity does; you can learn most of it on the VDC, as explaining each individual element would take too much time. The hardest part of this whole thing is, IMO, understanding the syntax for servercommand - after that it's all easy pie.