Sign in to follow this  
Followers 0
Kyotee

Tank CFML -- mouse control

4 posts in this topic

My modified Tank.CFML.  On a MAC it is fold at:

~/Documents/WWIIOnline/cfml

It alows you to use your joystick and mouse for aiming and firing your primary and secondary weapon.  The mouse is particuliar useful for fine tuning your aiming at ling distance.  Change your Joystick buttons as needed.  I am using a CH products 568 Combatstick.

The section in blue is the mouse setup.  Copy and pastes to your tank.cfml.

It can also be used with ATGs.

 

<?xml version='1.0'?>
<!DOCTYPE controlset SYSTEM "cfml.dtd">
<controlset version="1.1.0" language="english" keyboard="us">
    <control function="Shift up">
        <joybutton stick="1" index="1">5</joybutton>
    </control>
    <control function="Shift down">
        <joybutton stick="1" index="1">7</joybutton>
    </control>
    <control function="Instrument view">
        <key index="1">right shift</key>
    </control>
    <control function="Gunsight view">
        <joybutton stick="1" index="1">3</joybutton>
    </control>
    <control function="Cycle ammo">
        <joybutton stick="1" index="1">4</joybutton>
    </control>
    <control function="Use primary weapon">
        <mousebutton index="1">1</mousebutton>
    </control>
    <control function="Use secondary weapon">
        <mousebutton index="1">2</mousebutton>
    </control>
    <control function="Gunsight Range Decrease">
        <key index="1">down arrow</key>
    </control>
    <control function="Gunsight Range Increase">
        <key index="1">up arrow</key>
    </control>
    <control function="Gas">
        <keyabsolute value="0.00">
            <key></key>
        </keyabsolute>
    </control>
    <control function="Turret traverse">
        <joyaxis stick="1">x</joyaxis>
        <mouseaxis index="1">x</mouseaxis>
        <keyabsolute value="0.00">
            <key></key>
        </keyabsolute>
        <keyabsolute value="0.00" index="10">
            <key></key>
        </keyabsolute>
        <keyabsolute value="0.00" index="11">
            <key></key>
        </keyabsolute>
    </control>
    <control function="Turret elevate">
        <joyaxis stick="1" invert="1">y</joyaxis>
        <mouseaxis index="1">y</mouseaxis>
    </control>
</controlset>

 

Share this post


Link to post
Share on other sites

good!

 

I only play with Keyboard and Mouse
(I have no joy)

I've been using this config since 2004..

(Keyboard and Mouse)

=======================================================

<?xml version='1.0'?>
<!DOCTYPE controlset SYSTEM "cfml.dtd">
<controlset version="1.1.0" language="english" keyboard="us">
    <control function="Canopy control">
        <key index="1">0</key>
    </control>0
    <control function="Deploy weapon">
        <key>g</key>
    </control>
    <control function="Shift up">
        <key>up arrow</key>
        <mousebutton index="1">1</mousebutton>
    </control>
    <control function="Shift down">
        <key>down arrow</key>
        <mousebutton index="1">2</mousebutton>
    </control>
    <control function="Gunsight view">
        <key>numpad 0</key>
        <key index="1">f</key>
    </control>
    <control function="Determine Range">
        <key>r</key>
    </control>
    <control function="Use primary weapon">
        <key></key>
        <mousebutton index="1">1</mousebutton>
    </control>
    <control function="Use secondary weapon">
        <key>space</key>
        <mousebutton index="1">2</mousebutton>
    </control>
    <control function="Gas">
        <joyaxis stick="0"></joyaxis>
        <keyabsolute value="0.00" onrelease="0.00">
            <key>x</key>
        </keyabsolute>
        <keyabsolute value="100.00" onrelease="100.00" index="10">
            <key>s</key>
        </keyabsolute>
    </control>
    <control function="Left track clutch">
        <joyaxis stick="0"></joyaxis>
        <keyabsolute value="100.00" onrelease="0.00" index="10">
            <key>a</key>
        </keyabsolute>
    </control>
    <control function="Right track clutch">
        <joyaxis stick="0"></joyaxis>
        <keyabsolute value="100.00" onrelease="0.00" index="10">
            <key>d</key>
        </keyabsolute>
    </control>
    <control function="Left brake">
        <joyaxis stick="0"></joyaxis>
        <keyabsolute value="100.00" onrelease="0.00" index="10">
            <key>a</key>
        </keyabsolute>
    </control>
    <control function="Right brake">
        <joyaxis stick="0"></joyaxis>
        <keyabsolute value="100.00" onrelease="0.00" index="10">
            <key>d</key>
        </keyabsolute>
    </control>
    <control function="Center brake">
        <joyaxis stick="0"></joyaxis>
        <keyabsolute value="0.00" onrelease="0.00">
            <key>s</key>
        </keyabsolute>
        <keyabsolute value="100.00" onrelease="100.00" index="10">
            <key>x</key>
        </keyabsolute>
    </control>
    <control function="Steering">
        <joyaxis stick="0"></joyaxis>
        <keyabsolute value="0.00" onrelease="50.00">
            <key>a</key>
        </keyabsolute>
        <keyabsolute value="100.00" onrelease="50.00" index="10">
            <key>d</key>
        </keyabsolute>
    </control>
    <control function="Turret traverse">
        <mouseaxis>x</mouseaxis>
        <keyabsolute value="0.00" onrelease="50.00">
            <key>a</key>
        </keyabsolute>
        <keyabsolute value="40.00" onrelease="50.00" index="4">
            <key>left arrow</key>
        </keyabsolute>
        <keyabsolute value="60.00" onrelease="50.00" index="6">
            <key>right arrow</key>
        </keyabsolute>
        <keyabsolute value="100.00" onrelease="50.00" index="10">
            <key>d</key>
        </keyabsolute>
    </control>
    <control function="Turret elevate">
        <mouseaxis>y</mouseaxis>
        <keyabsolute value="0.00" onrelease="50.00">
            <key>x</key>
        </keyabsolute>
        <keyabsolute value="40.00" onrelease="50.00" index="4">
            <key>down arrow</key>
        </keyabsolute>
        <keyabsolute value="60.00" onrelease="50.00" index="6">
            <key>up arrow</key>
        </keyabsolute>
        <keyabsolute value="100.00" onrelease="50.00" index="10">
            <key>s</key>
        </keyabsolute>
    </control>
    <control function="Hull Gun Elevate">
        <keyabsolute value="0.00" onrelease="50.00">
            <key>v</key>
        </keyabsolute>
        <keyabsolute value="100.00" onrelease="50.00" index="10">
            <key></key>
        </keyabsolute>
    </control>
</controlset>
 

 

 

Share this post


Link to post
Share on other sites

I havent been able to get mouse aim to work for years - wish I still could.

Share this post


Link to post
Share on other sites

The mouse is very helpful in fine tuned aiming at long distance.  Copy and paste from above and you will have it.

 

I use both the mouse and joystick.

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.