Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 9 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Soldier of Fortune
Category: SoFII General
General game questions, comments and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: How to bind more than one command ?
spike232~rb
General Member
Since: Dec 23, 2006
Posts: 5892
Last: Dec 23, 2006
[view latest posts]
Level 10
Category: SoFII General
Posted: Saturday, Sep. 27, 2003 10:45 pm
Quote
Can anyone tell me what is wrong with leaning?


The grey area of leaning is the hitbox bug where the hitbox does not lean with the player so all weapons which use the hitbox (shotgun, knife, grenade) will effectivly pass throguth the player when they lean.

Some leagues are tring to stop people using scripts to aid them in exploiting this bug and even just normal scripts.

Quote
It is ok if i bind like this ?
eg: bind x "command1; command2; command3"


yes, but i think theres a prob where the 2nd command might not be turned off if its a + one, not sure if it was ever fixed
Share |
a liquid squid~rb
General Member
Since: Dec 23, 2006
Posts: 102
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII General
Posted: Sunday, Sep. 28, 2003 06:12 am
this could be totally wrong for SOF2 (as far as commands), but a good bet would be to use an alias..

for instance:
if i wanted to make a key that turned on something only until i released the key, all I would have to do is something like this:

alias +showframes "cl_showfps 1"
alias -showframes "cl_showfps 0"
bind F11 +showframes

A toggle key would be like this:
alias showframes0 "cl_showfps 1;bind F12 showframes1"
alias showframes1 "cl_showfps 0;bind F12 showframes0"
bind F12 showframes0


The "+" before the "showframes", in the first example, is basically telling the game that "showframes" is not a toggle key.  For example, when you hold down the 'attack' button you keep attacking until you realease it... this is because your mousebutton is bound to "+attack"  
When you release the mousebutton the command "-attack" is executed automatically...  The reason you dont see a "-attack" in your config file is because the command "attack" is an actual command, with either the attacking or not attacking state.  
However, with this:

alias +showframes "cl_showfps 1"
alias -showframes "cl_showfps 0"
bind F11 +showframes

You DO have to define the "-showframes", because the command "showframes" is not a command... Its just the name for a command, or a set of commands... (poorly explained, i know)

Anyways...
Using the same idea, a jump/crouch command could be made..
+moveup = jump
+movedown = duck
-moveup = brings you out of the jumping state
-movedown = brings you out of the ducking state

alias +jumpduck "+moveup; +movedown" <-happens when you push space key
alias -jumpduck "-moveup;-movedown" <-happens when you release space
bind SPACE +jumpduck

(note: this may or may not work, I have not tested in this game)

With that as a guide, you should be able to figure this one out yourself...
later
Share |
tjh566~rb
General Member
Since: Dec 23, 2006
Posts: 935
Last: Dec 23, 2006
[view latest posts]
Level 7
Category: SoFII General
Posted: Sunday, Sep. 28, 2003 01:52 pm
Quote
alias +showframes "cl_showfps 1"
alias -showframes "cl_showfps 0"
bind F11 +showframes


y not just:
bind x "toggle cl_showfps"
Share |
a liquid squid~rb
General Member
Since: Dec 23, 2006
Posts: 102
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII General
Posted: Sunday, Sep. 28, 2003 02:11 pm
I don't know crap about sof2 commands, I was just ASSuming that an alias would be the way to go... too much quake2 engine scripting i guess.

thanks for the tip about the toggle command, ill have to try that in savage.  :)
Share |
COLOSSOS~rb
General Member
Since: Dec 23, 2006
Posts: 17
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Monday, Sep. 29, 2003 04:08 am
Its ok dudes!
I have find out about this. THANKS!! anyway all of you  :;):

Something else what i want to know it is that is it any script
for mirc to use it that i can see info for my sof2 server ?
eg: map, players, says etc. etc. etc.

Do someone knows something about it ?
Thanks to all of you   :)
Share |
PsychoMark~rb
General Member
Since: Dec 23, 2006
Posts: 215
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII General
Posted: Monday, Sep. 29, 2003 07:33 am
Quote (spike232 @ Sep. 28 2003, 12:45 am)
The grey area of leaning is the hitbox bug where the hitbox does not lean with the player so all weapons which use the hitbox (shotgun, knife, grenade) will effectivly pass throguth the player when they lean.

Some leagues are tring to stop people using scripts to aid them in exploiting this bug and even just normal scripts.

Ah yes, the famous "shotgun bug"... seen those people playing as well, going into lean-crouch-move mode as soon as they see you...


...unfortunately I know about the hitbox and completely ignore their efforts :D. That is, when using a shotgun... as for the grenade: I don't think leaning will make that much of a difference if it explodes next to them :;):
Share |
spike232~rb
General Member
Since: Dec 23, 2006
Posts: 5892
Last: Dec 23, 2006
[view latest posts]
Level 10
Category: SoFII General
Posted: Monday, Sep. 29, 2003 04:38 pm
Quote (PsychoMark @ Sep. 29 2003, 8:33 am)
as for the grenade: I don't think leaning will make that much of a difference if it explodes next to them :;):

no but it does make a big difference if ur nade passes right throught them and then explodes far behind them insted of hitting them and either exploding or bouncing next to them.
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Soldier of Fortune : SoFII General

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»