Input console commands via map?

Discussion in 'Mapping Questions & Discussion' started by Blue552, Nov 1, 2009.

  1. Blue552

    Blue552 L3: Member

    Messages:
    137
    Positive Ratings:
    18
    Just wondering what entity would I use to change the maps sv_airaccelerate to 300

    [this is for a CS map but I'm stealing your extensive knowledge of hammer]

    I noticed that the ultimate mappers resource had something like this, how would I get it into CS? or is there already something similiar which exists thar?
     
  2. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,742
    point_clientcommand
    point_servercommand

    send it an input from any entity "ontrigger | <name of point_clientcommand> | command | sv_airaccelerate 300"
    With everything after the final divider there being a parameter override.
     
    • Thanks Thanks x 1
  3. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    Take care: If the setting doesn't get reset to normal before the next map, nobody will run your map in a rotation because it messes up all the maps that come after it.
     
    • Thanks Thanks x 1
  4. Blue552

    Blue552 L3: Member

    Messages:
    137
    Positive Ratings:
    18
    dually noted.

    Being played on surf maps it varies, but if I know which servers its being hosted on I should be able to account for that.

    Thinking of learning C++ in uni next year, but it's so scary. My friend tells me they created a computer game character AI for a assignment so would be relevant to my leisure time :D

    ^ relevance, tell it to reset to what ever the original settings where.
     
  5. Dr. ROCKZO

    Dr. ROCKZO L8: Fancy Shmancy Member

    Messages:
    580
    Positive Ratings:
    159
    So, this is for a CS map? doesn't cheats have to be on to use sv_ commands?
     
  6. Blue552

    Blue552 L3: Member

    Messages:
    137
    Positive Ratings:
    18
    Not for airaccelerate

    hmm, doesn't seem to be working at the moment