Hmm I remember Zane did something similar but the gun moved a little and it still shot stuff when you clicked
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
https://www.youtube.com/watch?v=EMSB1GbBVl8
And for sure my 8 months old gameplay with 2 friends
https://www.youtube.com/watch?v=Na2kUdu4d_k
Hmm I remember Zane did something similar but the gun moved a little and it still shot stuff when you clicked
Make your D3D Cursor, and Show with Menu..
U dont understand me. I show cursor but i want to pause the game
Or to mAke mojsesensigivity to 0
But how???
I mean like the esc menu ingame just without the menu
Thx i done this befor but it move a bit when i move mouse.
I want to find the addy for ot but i dpnt know how
Not freeze... I want to show the esc menu wirhout the menu
So i cant shoot and cant move
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: