View Single Post
Old 10-28-2007, 01:40 PM   #88
DarK_TaO
Mapper ^^
 
Join Date: Apr 2007
Location: yes (:
Posts Rated Helpful 0 Times
Send a message via ICQ to DarK_TaO Send a message via MSN to DarK_TaO
Quote:
Originally Posted by Krusty
Hello

*first post on FF forum^^*

i have a question, is it possible to make an "Incoming Script"
where i can define the "ways of Incomings" like this.

F1 = "Incomings via X1"
F2 = "Incomings via X2"

but i want to define x1 and x2 ingame, when i press F1 i could typ "plank" and if i press F2 i could typ "ramp". So when pressing it again it will look like:

F1 = "Incomings via Plank"
F2 = "Incomings via Ramp"

is that possible?

There are 2 solutions:

First:

bind "F1" "Say_Team Incoming from ==> [%l]"

That will show where are they coming from, but the problem is that if your possition has more than 2 ways, your teammates won't know.

Second:

You will need to create .cfg files for this one, for each map you want. You can do this by simply opening your notepad (NOT WORDPAD) and saving whatever is inside of it as "name.cfg" BUT you HAVE to deselect "text files", and select "All types of file" or whatever it says, my Windows is not in english.

Example:

You create a "ff_monkey.cfg" (With notepad of course), before saving this file, you should put this inside:

Code:
echo *******************
echo Monkey Cfg Loaded
echo *******************

alias poss1 "say_team Incoming! ==> {Junction!} %h% + %a% A"
alias poss2 "say_team Incoming! ==> {Low Res!} %h% + %a% A"
alias poss3 "...."
etc. as many as you like.
Now save that cfg file in:

Steam dir\steamapps\sourcemods\FortressForever\cfg

AND in the class.cfg you want, you have to put:

Code:
bind "F1" "poss1"
bind "F2" "poss2"
Explanation:

The "alias" command, gives a certain command, or series of commands to a word, in this case the say_team.

In each map.cfg you will re-define the aliases (poss1, poss2, etc) as you like.

So if you have binded a key to any of those alias, every time the map changes (and you have a .cfg for it) the say_team will change.

Hope I could help ^^
DarK_TaO is offline   Reply With Quote