"Onpreforms.cfg" file (loads after a map is loaded)

Please give us your opinions on gameplay and any suggestions you have which could make Dystopia better.

Moderator: Forum Moderators

"Onpreforms.cfg" file (loads after a map is loaded)

excellent. (+2)
4
57%
could be cool. (+1)
0
No votes
do not like it. (-1)
3
43%
 
Total votes : 7

"Onpreforms.cfg" file (loads after a map is loaded)

Postby The Chosen One » Sat Sep 18, 2010 3:15 pm

TL;DR: An Onperforms script for Dystopia (like the ones you see in IRC clients)

So, after playing OBtopia for a few days, I noticed that my in-game name (which was different from my Steam Name) had defaulted to my Steam name. Knowing that the OB engine sets in-game names to Steam names, I used setinfo name to change my name. A few rounds later, I noticed that it had defaulted back yet again. Puzzled, I set changed again with setinfo, this time taking note of how long it remained changed. Apparently setinfo stops working after a new map loads, or you connect to a server.

So, I had a thought. *Cue Windows 7 commercial-like effects*

"There should be a script that executes when the map loads!"


What if there was a script like "onpreforms.cfg" that functions similar to the onpreforms function in most IRC clients. It doesn't start when the client loads, but rather when it finishes connecting to a server.

Pros:
  • Could be used to change names without having to manually execute a script.
  • Could be used to auto-authenticate to servers if needed
  • Could be used to set functions that may only be set when joining a server

Cons:
  • Could technically be hijacked to disconnect a user as they join a server
    --You could also just put "quit prompt" in valve.rc and do more damage.
  • Could be hijacked to screw up settings upon joining server.
    --See above
  • Could be read by a 3rd party on a remote machine to gain passwords if the system is comprimised
    --Dude. If someone hacked your PC, they're not gonna just go after a password to one server in one (little-known about) game.
User avatar
The Chosen One
PHAN
PHAN
 
Posts: 137
Joined: Fri Jun 19, 2009 3:21 pm

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby KindredPhantom » Sun Sep 19, 2010 3:38 am

Or perhaps you could put it in a cfg and execute it on map load?
Image
Image
Image
User avatar
KindredPhantom
Puny Human staff
 
Posts: 2943
Joined: Mon Jan 23, 2006 5:27 am
Location: United Kingdom

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby UsefulId|ot » Sun Sep 19, 2010 7:10 am

KindredPhantom wrote:Or perhaps you could put it in a cfg and execute it on map load?

when was simplicity ever the best answer?!
Image
Image
User avatar
UsefulId|ot
PHAN
PHAN
 
Posts: 502
Joined: Mon Aug 11, 2008 7:45 am

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby Zero-Flame » Sun Sep 19, 2010 8:29 am

When we developed the first nuclear bomb of course :)

Yeah,

bind z "exec onPerform.cfg"

Tada, no code changes needed.
WW3|Zero-Flame
Free file hosting at http://Zero-Flame.com
US FastDL @ http://fastdl.zero-flame.com
Image
Image
User avatar
Zero-Flame
higher post count
 
Posts: 2708
Joined: Wed May 31, 2006 3:14 pm
Location: Greensburg, KS/ Kansas City, MO
Real Name: Josh Goodman

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby The Chosen One » Sun Sep 19, 2010 9:09 am

Yes, but that requires you having to remember to press a key on map load. What if you're too forgetful or lazy to do so?
User avatar
The Chosen One
PHAN
PHAN
 
Posts: 137
Joined: Fri Jun 19, 2009 3:21 pm

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby KindredPhantom » Sun Sep 19, 2010 9:11 am

The Chosen One wrote:Yes, but that requires you having to remember to press a key on map load. What if you're too forgetful or lazy to do so?

Then you will still have the same name.
Image
Image
Image
User avatar
KindredPhantom
Puny Human staff
 
Posts: 2943
Joined: Mon Jan 23, 2006 5:27 am
Location: United Kingdom

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby Juan » Sun Sep 19, 2010 12:16 pm

bind it to "w"
User avatar
Juan
PHAN
PHAN
 
Posts: 3396
Joined: Sat Nov 19, 2005 1:05 pm

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby Zero-Flame » Sun Sep 19, 2010 5:36 pm

bind mouse1 "+fire;exec onperforms.cfg;"
WW3|Zero-Flame
Free file hosting at http://Zero-Flame.com
US FastDL @ http://fastdl.zero-flame.com
Image
Image
User avatar
Zero-Flame
higher post count
 
Posts: 2708
Joined: Wed May 31, 2006 3:14 pm
Location: Greensburg, KS/ Kansas City, MO
Real Name: Josh Goodman

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby UsefulId|ot » Sun Sep 19, 2010 10:00 pm

Zero-Flame wrote:bind mouse1 "+fire;exec onperforms.cfg;"

Code: Select all
bind mouse1 "+fire;exec onperforms.cfg;kill;quit"
if yer playing vs me
Image
Image
User avatar
UsefulId|ot
PHAN
PHAN
 
Posts: 502
Joined: Mon Aug 11, 2008 7:45 am

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby jasongauthierdk » Sun Nov 07, 2010 12:19 pm

I believe server.cfg does the job.

It executes on map change, server side. Not sure about client side though.
Image
jasongauthierdk
Blank Load Out
 
Posts: 6
Joined: Wed Sep 15, 2010 9:31 am

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby The Chosen One » Sun Nov 07, 2010 1:06 pm

Well, see, a server-side cfg wouldn't be useful. Servers have no control over things like setinfo name.
User avatar
The Chosen One
PHAN
PHAN
 
Posts: 137
Joined: Fri Jun 19, 2009 3:21 pm


Return to Dystopia Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest