Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted

    MouseMenu Unlock mOuse

    Hey guys
    I want to know how to "freeze" the game so u can normally use ur mouse.
    I have this code now:

    [HTML]PTC("CursorCenter 0");
    GetCursorPos(&cPos);
    DrawBox(cPos.x, cPos.y, 3, 3, Red, Black, pDevice);[/HTML]

    I can now normally move my mouse but my gun is moving with it and when i click it shoots. Can i freeze it like with hitting esc WIHTOUT hitting esc???

    Plz help me

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    http://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    http://www.youtube.com/watch?v=Na2kUdu4d_k

  2. #2
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224
    Hmm I remember Zane did something similar but the gun moved a little and it still shot stuff when you clicked

  3. #3
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Make your D3D Cursor, and Show with Menu..

  4. #4
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    795
    My Mood
    Busy
    Quote Originally Posted by Alessandro10 View Post
    Make your D3D Cursor, and Show with Menu..
    yeah and freeze it

    H A X O
    Email : Noobmem@hotmail.com


  5. #5
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    U dont understand me. I show cursor but i want to pause the game
    Or to mAke mojsesensigivity to 0
    But how???

  6. #6
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224
    You can't pause the game.

  7. #7
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    I mean like the esc menu ingame just without the menu

  8. #8
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Freeze Yaw and Pitch

  9. #9
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    Thx i done this befor but it move a bit when i move mouse.

  10. #10
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Quote Originally Posted by Ch40zz-C0d3r View Post
    Thx i done this befor but it move a bit when i move mouse.
    I don't think there's any way to stop it unless you try doing in in a separate thread.

  11. #11
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    I want to find the addy for ot but i dpnt know how

  12. #12
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    795
    My Mood
    Busy
    Quote Originally Posted by Ch40zz-C0d3r View Post
    I want to find the addy for ot but i dpnt know how
    and why you want freeze it

    H A X O
    Email : Noobmem@hotmail.com


  13. #13
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    Not freeze... I want to show the esc menu wirhout the menu
    So i cant shoot and cant move

  14. #14
    Solify's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Frankfurt, Germany
    Posts
    2,291
    Reputation
    143
    Thanks
    2,473
    My Mood
    Aggressive
    btw use a better mouse^^
    Code:
    void DrawRect(int x,int y,int h,int w,DWORD Color,LPDIRECT3DDEVICE9 pDevice){
    D3DRECT rec;
    rec.x1 = x;
    rec.x2 = x + w;
    rec.y1 = y;
    rec.y2 = y + h;
    pDevice->Clear(1,&rec,D3DCLEAR_TARGET,Color,0,0);
    }
    Code:
    void DrawMouse(DWORD color,LPDIRECT3DDEVICE9 pDevice){
    POINT myCursor;
    GetCursorPos(&myCursor);
    DrawRect(myCursor.x,myCursor.y,11,1,color,pDevice);
    DrawRect(myCursor.x+1,myCursor.y+1,9,1,color,pDevice);
    DrawRect(myCursor.x+2,myCursor.y+2,7,1,color,pDevice);
    DrawRect(myCursor.x+3,myCursor.y+3,7,1,color,pDevice);
    DrawRect(myCursor.x+4,myCursor.y+4,8,1,color,pDevice);
    DrawRect(myCursor.x+5,myCursor.y+5,3,1,color,pDevice);
    DrawRect(myCursor.x+6,myCursor.y+6,2,1,color,pDevice);
    DrawRect(myCursor.x+7,myCursor.y+6,1,1,color,pDevice);
    DrawRect(myCursor.x+5,myCursor.y+10,4,1,color,pDevice);
    DrawRect(myCursor.x+6,myCursor.y+12,2,1,color,pDevice);
    }


    Using it:
    Code:
    DrawMouse(Cyan,pDevice);

    Screen:

  15. #15
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    Quote Originally Posted by Solify View Post
    btw use a better mouse^^
    Code:
    void DrawRect(int x,int y,int h,int w,DWORD Color,LPDIRECT3DDEVICE9 pDevice){
    D3DRECT rec;
    rec.x1 = x;
    rec.x2 = x + w;
    rec.y1 = y;
    rec.y2 = y + h;
    pDevice->Clear(1,&rec,D3DCLEAR_TARGET,Color,0,0);
    }
    Code:
    void DrawMouse(DWORD color,LPDIRECT3DDEVICE9 pDevice){
    POINT myCursor;
    GetCursorPos(&myCursor);
    DrawRect(myCursor.x,myCursor.y,11,1,color,pDevice);
    DrawRect(myCursor.x+1,myCursor.y+1,9,1,color,pDevice);
    DrawRect(myCursor.x+2,myCursor.y+2,7,1,color,pDevice);
    DrawRect(myCursor.x+3,myCursor.y+3,7,1,color,pDevice);
    DrawRect(myCursor.x+4,myCursor.y+4,8,1,color,pDevice);
    DrawRect(myCursor.x+5,myCursor.y+5,3,1,color,pDevice);
    DrawRect(myCursor.x+6,myCursor.y+6,2,1,color,pDevice);
    DrawRect(myCursor.x+7,myCursor.y+6,1,1,color,pDevice);
    DrawRect(myCursor.x+5,myCursor.y+10,4,1,color,pDevice);
    DrawRect(myCursor.x+6,myCursor.y+12,2,1,color,pDevice);
    }


    Using it:
    Code:
    DrawMouse(Cyan,pDevice);

    Screen:
    Nice Solify.. its works fine

Page 1 of 2 12 LastLast