Announcement

Collapse
No announcement yet.

Scripting help request...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Scripting help request...

    Ok, so here's what I have currently...

    namecfg.cfg:
    setinfo name "{CLR} Heceldi"

    autoexec.cfg:
    bind "F12" "exec namecfg"

    Is there any way to add a modicum of logic so that its executed on all map starts? Simply putting it to occur by calling the exec in autoexec doesn't work. It has to occur after connect, and again on map change.

    I don't want to change my steam nick, I've had it without a tag forever.

    #2
    if you put in your config.cfg it will run each map, your binds are reset on map change etc




    I'm not insane. I'm just overwhelming!

    ·····••••• Support Cainslair. Donate here!•••••·····
    ·····••••• and get extra options! •••••·····

    Comment


      #3
      Doesn't your TF2 name always match whatever you have your Steam Friends name set to?
      Ahhh...the power of cheese!

      Comment


        #4
        Originally posted by ch33s3r View Post
        Doesn't your TF2 name always match whatever you have your Steam Friends name set to?
        I believe so, yes
        [CENTER]
        [SIGPIC][/SIGPIC]

        [url="http://www.gametracker.com/server/67.222.138.115:19567/player/Queen%20B%20%7BCLR%7D/" target="_blank"][IMG]http://cache.www.gametracker.com/player/Queen%20B%20%7BCLR%7D/67.222.138.115:19567/b_560x95.png[/IMG][/URL]

        [u]Cain's Lair[/u]
        [I]"You'll come for the games, but you'll stay for the people"[/I]
        (at least I did)

        Want to know how to become a {CLR}?
        [URL="http://www.cainslair.com/showthread.php?t=2021"][b]click here![/b][/URL]

        Donate [URL="http://www.cainslair.com/misc.php?do=donate"][b]here[/b][/URL]

        [b][u][URL="http://beatrizyumi.deviantart.com"]My DeviantArt page[/URL][/b][/u]
        [/CENTER]

        Comment


          #5
          No, it can be different.

          The console command is this:
          Code:
          setinfo name "WHATEVER YOU WANT"
          You can skip the " marks if you don't want spaces, so this could also work:
          Code:
          setinfo name WHATEVERYOUWANT
          Like I mentioned in the previous post, it always starts out their real name, but it can be changed once connected.

          Regardless, using the console command status shows the Steam ID associated with the name, which can be used to lookup their real steam name.

          Comment


            #6
            Cool. So did Sirex's advice help?
            Ahhh...the power of cheese!

            Comment


              #7
              Nope, due to steam cloud the config.cfg is overwritten on connect. I have to put custom stuff in autoexec.cfg. Again, same problem, does not work with setinfo name, as it only works after fully connected.

              Comment


                #8
                What about putting the setinfo command in all of your class configs? (scout, spy, etc) Each time you choose a class, wouldn't it set your name to what you specify? Assuming you set all of those names to the same thing, it should only change once per map.
                Ahhh...the power of cheese!

                Comment


                  #9
                  That worked.

                  Time to get to playing (though I'm half blind atm... blinked while reading some stuff a bit ago and a contact fell out, and hit the floor... I ran over it with the chair wheel when I went to look for it).

                  Comment


                    #10
                    Originally posted by Heceldi View Post
                    That worked.

                    Time to get to playing (though I'm half blind atm... blinked while reading some stuff a bit ago and a contact fell out, and hit the floor... I ran over it with the chair wheel when I went to look for it).
                    Bummer !!!

                    Comment


                      #11
                      Originally posted by Heceldi View Post
                      That worked.

                      Time to get to playing (though I'm half blind atm... blinked while reading some stuff a bit ago and a contact fell out, and hit the floor... I ran over it with the chair wheel when I went to look for it).
                      that it worked, about the contact
                      Ahhh...the power of cheese!

                      Comment

                      Cain's Lair Forums Statistics

                      Collapse

                      Topics: 26,187   Posts: 269,850   Members: 6,183   Active Members: 6
                      Welcome to our newest member, Fermin13Q.

                      Today's Birthdays

                      Collapse

                      Top Active Users

                      Collapse

                      There are no top active users.

                      More Posts

                      Collapse

                      • Reply to Hi guys!
                        by Evil_T0NY {CLR}
                        I've been Alpha and will be Beta testing the Delta Force game. It's been really getting good reviews! Definitely a good Battlefield feel to it like the...
                        14 Nov 2024, 08:50 PM
                      • Reply to Hope your all OK over there
                        by Apache Warrior
                        We had 17 inches of rain from the storm on November 7, 2024.
                        Apache
                        11 Nov 2024, 07:55 AM
                      • Reply to Hope your all OK over there
                        by Sirex
                        Aye, I'm inclined to agree with that lmao
                        Gone are the days of warm summers and snow filled winters here, nothing but rain and wind for 8mths of...
                        10 Nov 2024, 08:53 PM
                      • Reply to Hope your all OK over there
                        by Apache Warrior
                        Now we have had a lot of flooding in this area and there are still a lot of houses that have not been repaired. Must be the apocalypse.
                        ...
                        8 Nov 2024, 09:23 AM
                      Working...
                      X