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

Members Online

»
0 Active | 34 Guests
Online:

LATEST FORUM THREADS

»
SOF2 Prefabs map
SoFII Mapping
coduo mapping tools
CoDUO Mapping

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
Next Page
subscribe
Author Topic: Single player scripts :: mousewheel + toggles
dangerdoggie~rb
General Member
Since: Dec 23, 2006
Posts: 21
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Saturday, May. 25, 2002 01:43 pm
// ---------------------- start copy here

// ==================
// == Wheel Script ==
// ==================
// Vstr      Toggle                Wheel Forward         Wheel Backward        Wheel Down            
// ========= ===================== ===================== ===================== ======================
set mw_00 "set mw_t vstr mw_01;  bind MWHEELUP +higher; bind MWHEELDOWN +lower;      echo ^6::SET ^6TO ^6ZOOM::"
set mw_01 "set mw_t vstr mw_00;  bind MWHEELUP weapprev;bind MWHEELDOWN weapnext;    echo ^4==SET ^4TO ^4ITEM=="
  vstr mw_01 // set default bind setting's


// ===================
// == crouch Script ==
// ===================

set sit    "+movedown; set crouch vstr stand"
set stand  "-movedown; set crouch vstr sit"
set crouch "vstr sit" //set default

// ==================
// == Prone Script ==
// ==================

       set proneon "+prone; set plock vstr proneoff"
       set proneoff "-prone; set plock vstr proneon"
       set plock "vstr proneon" //set default

// ================
// == Run Script ==
// ================


       set runon "+speed; set rlock vstr runoff"
       set runoff "-speed; set rlock vstr runon"
       set rlock "vstr runon" //set default


// ========================
// == Mouse+ Assignments ==
// ========================
// Binding's       Vstr           Comments
// =============== =============  ================================
bind MWHEELUP   "weapprev"     // reset mouse wheel on startup
bind MWHEELDOWN "weapnext"  
bind z          "vstr mw_t"    // Select Item or Zoom setting's
       bind alt        "vstr crouch"  // crouch toggle keybind
       bind x          "vstr plock"   // prone toggle keybind
       bind shift      "vstr rlock"   // run toggle keybind

// ---------------------- end copy here
Share |
splode~rb
General Member
Since: Dec 23, 2006
Posts: 182
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII General
Posted: Saturday, May. 25, 2002 01:49 pm
That's interesting.

Hey, question - is it possible to make the mouse wheel control the sniper scope magnification level?

Or - this would be hard, probably - could you make it so that when you have any other weapon, you cycle weapons (last weapon and previous weapon - as it is now), but when you have the sniper scope up, THEN the mouse wheel controls the view magnification.

Is that possible?
Share |
dangerdoggie~rb
General Member
Since: Dec 23, 2006
Posts: 21
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Saturday, May. 25, 2002 01:52 pm
hmm formating is all screwed up, but it will still work.  copy and paste this to a notepad document, modify andy keybinds at the bottom, I've got it set as follows

z key will toggle between sniper zoom and weapon change for mousewheel

alt is crouch toggle/lock
x is prone toggle/lock
shift is run toggle/lock

then save it in

C:\Program Files\Soldier of Fortune II - Double Helix\base

save it as "auto.cfg"  <- use the quotes when saving

modify your single player desktop shortcut (right click, properties), and add

+exec auto.cfg

to the end of the Target: line.
Share |
dangerdoggie~rb
General Member
Since: Dec 23, 2006
Posts: 21
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Saturday, May. 25, 2002 01:59 pm
Quote (splode @ May 25 2002, 3:49)
That's interesting.

Hey, question - is it possible to make the mouse wheel control the sniper scope magnification level?

Or - this would be hard, probably - could you make it so that when you have any other weapon, you cycle weapons (last weapon and previous weapon - as it is now), but when you have the sniper scope up, THEN the mouse wheel controls the view magnification.

Is that possible?

Got ahead of me there.. that's what the z key does it toggels between sniper zoom, or weapon change for the mouse wheel.. of course it doesnt do anything if you have it set to zoom and not in scope view.

if you want to use this for multi player, change the

bind MWHEELUP +higher; bind MWHEELDOWN +lower;

to..

bind MWHEELUP +zoomin; bind MWHEELDOWN +zoomout;

save it to

C:\Program Files\Soldier of Fortune II - Double Helix\base\mp

as autoexec.cfg, you don't have to add it to the end of the Target: line, mulit mode SOF2 acts more like Quake3 than the single player mode.
Share |
dangerdoggie~rb
General Member
Since: Dec 23, 2006
Posts: 21
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Monday, May. 27, 2002 02:04 pm
Zoom toggle also works with binoculars, and if you are in akimbo and have your mouse wheel set to zoom it will allow you to switch between having two uzi's or your hand gun and the uzi.
Share |
Trunks~rb
General Member
Since: Dec 23, 2006
Posts: 231
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII General
Posted: Saturday, Jun. 1, 2002 08:37 pm
Hey Dangerdoggie I've made some modifications to your config:

// <-- START copy here

// Aliases:

seta crouchswitch "vstr duck"
seta duck "+movedown; echo -= ^2Duck =-; set crouchswitch vstr stand"
seta stand "-movedown; echo -= ^2Stand =-; set crouchswitch vstr duck"

seta pronelock "vstr proneon"
seta proneon "+prone; echo -= ^1Prone =-; set pronelock vstr proneoff"
seta proneoff "-prone; echo -= ^1Normal ^1movement =-; set pronelock vstr proneon"

seta speedlock "vstr walking"
seta walking "set cl_run 0; echo -= ^5Walking =-; set speedlock vstr running"
seta running "set cl_run 1; echo -= ^5Running =-; set speedlock vstr walking"

seta mwswitch "vstr mwzoom"
seta mwzoom "bind MWHEELUP +higher; bind MWHEELDOWN +lower;  echo -= ^4Zoom mouse wheel =-; set mwswitch vstr mwitem"
seta mwitem "bind MWHEELUP weapprev; bind MWHEELDOWN weapnext; echo -= ^4Item mouse wheel =-; set mwswitch vstr mwzoom"

seta weapswitch "vstr weapsafe"
seta weapsafe "set wpn_switching 1; echo -= ^6Safe weapon switching =-; set weapswitch vstr weapnormal"
seta weapnormal "set wpn_switching 0; echo -= ^6Unsafe weapon switching =-; set weapswitch vstr weapsafe"

// BINDS (change the keys if you want to):

bind CTRL "vstr crouchswitch" // crouch toggle
bind C "vstr pronelock" // prone toggle
bind SHIFT "vstr speedlock" // run/walk toggle
bind Z "vstr mwswitch" // item/zoom mousewheel toggle
bind P "vstr weapswitch" // safe/unsafe weapon-switch toggle
bind F11 "r_screenshotJPEG silent" // takes JPG screenshot with no "wrote screen..." message
bind F12 "clear" // clears the console (frees some little memory, for low-end systems)

// <-- END copy here

Save this as "keys.cfg" (or whatever you like) in your "SOF2\base" directory. Start the game, bring up the console (shift+~) and type:

exec keys.cfg

That's it.

For those interested: "seta" will save everything in your cfg file, if you don't want such a thing (the file can grow up too much), change the "seta" every beginning of a line to a "set", then do the normal stuff ("+exec keys.cfg" at the end of the Target line in your Shortcut).
Share |
ReverendTed~rb
General Member
Since: Dec 23, 2006
Posts: 2198
Last: Dec 23, 2006
[view latest posts]
Level 8
Category: SoFII General
Posted: Saturday, Jun. 1, 2002 08:45 pm
This is useful information, so I'm pinning it, but I'm moving it to the SoF2 forums.
Share |
dangerdoggie~rb
General Member
Since: Dec 23, 2006
Posts: 21
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Sunday, Jun. 2, 2002 12:55 pm
Mostly for multiplay/infiltration is the weaptoggle command where you can switch between two different types of weapons with one key bind, or just use "weaptoggle pistol" if you just want to have one weapon select option for example.

a few that I use...

bind MOUSE3  “weaptoggle primary secondary”

bind q  “weaptoggle grenade knife”
Share |
Ryo..Ohki~rb
General Member
Since: Dec 23, 2006
Posts: 1774
Last: Dec 23, 2006
[view latest posts]
Level 8
Category: SoFII General
Posted: Monday, Jun. 3, 2002 10:28 am
for run/walk

bind <key> toggle cl_run
Share |
reapur~rb
General Member
Since: Dec 23, 2006
Posts: 14
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Monday, Jun. 3, 2002 12:12 pm
can someone please comment on what these scripts do. I'm not sure I know.
Don't we already have a keybind for crouch and prone?

Cheers
Share |
Restricted Access Topic is Locked
Page
Next 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

»