Jump to content

Weapon Change Scroll Mod


Rakewell

Recommended Posts

I posted this yesterday, but for whatever reason, my topic was deleted. Mods: did I do something wrong? Please advise so I won't make the same mistake twice.

 

I am looking for a mod that cycles through weapons (ie tagged weapons 1-9) like your general FPS. Something that utilizes the mouse scroll for this, but mapped keys for next/previous weapon would be acceptable.

 

I have googled the hell out of this and am coming up with nothing. Please forgive if it has been asked before.

 

Is there such a mod?

 

Thanks in advance.

Link to comment
Share on other sites

your solution would lie with FOSE (fallout script extender)

 

it has remapped keypress controls for each button and command of both keyboard, mouse and also your preset game keys as well, so you can make 'whatever makes you jump, do something else' or alternatively you can just make the spacebar do something.

 

its alot of control, and its great.

 

Read the bottom few lists of the document here:

http://fose.silverlock.org/

 

theres a doc/html at that link.

 

 

 

check it out:

 

256: Left Mouse Button

257: Right Mouse Button

258: Middle/Wheel Mouse Button

259: Mouse Button 3

260: Mouse Button 4

261: Mouse Button 5

262: Mouse Button 6

263: Mouse Button 7

264: Mouse Wheel Up

265: Mouse Wheel Down

 

so all youd need to do is make a script that asks for Control #264 and #265 and it would do something :)

 

youd likely need to write a script that handles weapon cycling, ie. (user must have weapons linked in weapon slots 1 and 2 at minimum to get it to work.

 

The script would basically cycle numerically in an increasing number from 1-8 every time, using the GetKeyPressed and the scancode #, um this command i think:

 

GetKeyPress

Alias: gkp

Parameters:1

index:Integer

Return Type: scanCode:Integer

Opcode: 0x1441 (5185)

Condition Function: No

Introduced In: 1

Calling Convention: B

Description: Returns the scancode of the nth key which is currently being held down

 

then a short series of if statements saying that if the mousewheel is scrolled up, the numbers 1-8 are pushed incrementally in sequence ascending.

if the mousewheel is scrolled down, the numerical sequence decreases.

 

Youd also have to add some checks to 'get current weapon selection' so it would scroll from the current one to the next higher or lower, instead of restarting from 1 every time, know what i mean....

 

Its totally doable, surprised nobody has yet

 

 

in the end you need:

 

FOSE.

Basic flowchart as to layout the groundwork for your script you will have to write, including what you want it to do. Once you have that scripting will be easier.

 

Script needs;

instructions to recognize mousewheel inputs

instructions on how to get the current equipped hotkey/weapon and return that as a value

code to add to that numerical value, or subtract from it when mousewheel input is recognized

 

i think? im no coder, just an artist... but thats how id try it

Link to comment
Share on other sites

your solution would lie with FOSE (fallout script extender)

 

it has remapped keypress controls for each button and command of both keyboard, mouse and also your preset game keys as well, so you can make 'whatever makes you jump, do something else' or alternatively you can just make the spacebar do something.

 

its alot of control, and its great.

 

Read the bottom few lists of the document here:

http://fose.silverlock.org/

 

theres a doc/html at that link.

 

 

 

check it out:

 

256: Left Mouse Button

257: Right Mouse Button

258: Middle/Wheel Mouse Button

259: Mouse Button 3

260: Mouse Button 4

261: Mouse Button 5

262: Mouse Button 6

263: Mouse Button 7

264: Mouse Wheel Up

265: Mouse Wheel Down

 

so all youd need to do is make a script that asks for Control #264 and #265 and it would do something :)

 

youd likely need to write a script that handles weapon cycling, ie. (user must have weapons linked in weapon slots 1 and 2 at minimum to get it to work.

 

The script would basically cycle numerically in an increasing number from 1-8 every time, using the GetKeyPressed and the scancode #, um this command i think:

 

GetKeyPress

Alias: gkp

Parameters:1

index:Integer

Return Type: scanCode:Integer

Opcode: 0x1441 (5185)

Condition Function: No

Introduced In: 1

Calling Convention: B

Description: Returns the scancode of the nth key which is currently being held down

 

then a short series of if statements saying that if the mousewheel is scrolled up, the numbers 1-8 are pushed incrementally in sequence ascending.

if the mousewheel is scrolled down, the numerical sequence decreases.

 

Youd also have to add some checks to 'get current weapon selection' so it would scroll from the current one to the next higher or lower, instead of restarting from 1 every time, know what i mean....

 

Its totally doable, surprised nobody has yet

 

 

in the end you need:

 

FOSE.

Basic flowchart as to layout the groundwork for your script you will have to write, including what you want it to do. Once you have that scripting will be easier.

 

Script needs;

instructions to recognize mousewheel inputs

instructions on how to get the current equipped hotkey/weapon and return that as a value

code to add to that numerical value, or subtract from it when mousewheel input is recognized

 

i think? im no coder, just an artist... but thats how id try it

 

 

Thanks for the ideas - I'm going to use your FOSE suggestion for some other commands I've been wanting to rescript.

 

I love the mod community.

 

Cheers- :biggrin:

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...