Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
0 registered members (), 938 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Changing mouse functions #6636
08/12/01 07:23
08/12/01 07:23

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



How do you change the options for the mouse so that the right mouse click is the jump key or something?

Re: Changing mouse functions #6637
08/16/01 05:12
08/16/01 05:12

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



What about this?
1. Kill the following line in "menu.wdl"
: "ON_MOUSE_RIGHT mouse_toggle;"
2. Use MOUSE_RIGHT just like KEY_HOME in "movement.wdl".
3. If you like to have the mouse pointer, there should be created another way to toggle ...
4. Hope, that there are no other definitions using the MOUSE in your wdl's.
5. Let me know, if it works, ...

Re: Changing mouse functions #6638
08/16/01 05:22
08/16/01 05:22
Joined: Sep 2000
Posts: 1,148
Eagle Offline
Serious User
Eagle  Offline
Serious User

Joined: Sep 2000
Posts: 1,148
hi frank r,
I am having the same problem as you are about
changing the Right Mouse button function!
So, "I wrote Doug"
this is what he told me;
=============================================
" Eagle,

The jumping force is set with the other forces in the "_player_intentions()" function. The lines in question are as follows:

// Set the cartesian forces according to the player intentions
force.X = strength.X*(KEY_FORCE.Y+JOY_FORCE.Y);
force.Y = strength.Y*(KEY_COMMA-KEY_PERIOD);
force.Z = strength.Z*(KEY_HOME-KEY_END);

Force.Z is the "jumping/ducking" force. This force is passed through a lot of functions until it finally arrives at "move_gravity" (if the player is on solid ground and not already jumping or ducking). The following lines handle the jump:

// if we have a jumping force...
if(force.Z > 0)
{
// predict the initial speed required to reach the jump height
// v = a*t; s = a/2*t*t; -> v = sqrt(2*a*s)
MY._SPEED_Z = sqrt((jump_height-my_height)*2*gravity);
// scale distance from jump (absdist.z) by movement_scale
absdist.z = MY._SPEED_Z * TIME * movement_scale;

// ...switch to jumping mode
MY._MOVEMODE = _MODE_JUMPING;
MY._ANIMDIST = 0;
}

Doug"
=============================================
your friend,



in the end its all about the game

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1