Input console commands via map?

Blue552

L3: Member
Sep 16, 2009
137
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?
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
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.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
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.
 

Blue552

L3: Member
Sep 16, 2009
137
18
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.

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.
 

Dr. ROCKZO

L8: Fancy Shmancy Member
Jul 25, 2009
580
159
So, this is for a CS map? doesn't cheats have to be on to use sv_ commands?