Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Crosshairs

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Mike Scott
Expert Cheater
Reputation: 4

Joined: 21 Jan 2011
Posts: 133
Location: Owning ThatGuyAgain at AssaultCube

PostPosted: Wed Feb 23, 2011 11:12 am    Post subject: Crosshairs Reply with quote

I've been working some with c++ but so far it's slow going.
And I'd really like to try to do something in a game ANYTHING in a game.

So i've decided to try to add crosshairs to my assaultcube sniper. But i've no clue how to start. . . anyone good with c++ that could help me? I intend on making it an injectable dll. . .

Thanks anyone Smile



Maybe this should be in programming?. . .hmm. . .

_________________
My name is really Mike Scott. I don't like The Office.
Back to top
View user's profile Send private message Send e-mail AIM Address
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25858
Location: The netherlands

PostPosted: Wed Feb 23, 2011 12:42 pm    Post subject: Reply with quote

find out what 3d system it uses (opengl or direct3d) and then hook the renderer.
e.g at endscene add a last ID3DPrite call to render a small crosshair texture

Alternatively, get some transparent tape, put a piece of paper in the form of the crosshair you want, and stick it to the center of your screen

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
megakoresh
Advanced Cheater
Reputation: 0

Joined: 14 Mar 2010
Posts: 94
Location: Teabag Party

PostPosted: Wed Feb 23, 2011 1:06 pm    Post subject: Reply with quote

Dark Byte wrote:
Alternatively, get some transparent tape, put a piece of paper in the form of the crosshair you want, and stick it to the center of your screen


OMG! I lol'd so hard at this. I should definitely try this! But I can't really help here, never played this game. I was hoping to, in fact, find some clues on how to write an overlay program... I am quite new to all this C++ stuff as well as to all of this programming.

Though I can give a basic advice. Want to learn C++ and try it right away on a game: Source is your Ultimate answer. Very easy to understand and integrate and with AMAZING wiki with code examples and stuff. I use it to learn C right now and and do it relatively speaking very successfully.

Also this forum is not very friendly... "You have not yet been deemed worthy enough to have an avatar"??? WTH? LOL
Back to top
View user's profile Send private message
Mike Scott
Expert Cheater
Reputation: 4

Joined: 21 Jan 2011
Posts: 133
Location: Owning ThatGuyAgain at AssaultCube

PostPosted: Thu Feb 24, 2011 7:32 pm    Post subject: Reply with quote

So far i've been, messing with the source (i guess that's what it is :/ ) and have changed a bunch of in game attributes like menus and stuff.
How would you go about messing with the source?

What compiler do you use to write c? I am trying to learn the basics of c=++ and dev-c++ isn't wanting to execute the code in the book I have. Is it something to do with the compiler, or is the book screwy?



About the avatar deal. You can't give rep, or post links until later either.
But don't worry mate, if you stick around it'll be okay.

And some of the members are nice, like Geri and Dark Byte. They're both awesome helpful Smile

_________________
My name is really Mike Scott. I don't like The Office.
Back to top
View user's profile Send private message Send e-mail AIM Address
M.CORP
Grandmaster Cheater Supreme
Reputation: 28

Joined: 28 Oct 2009
Posts: 1010

PostPosted: Thu Feb 24, 2011 11:28 pm    Post subject: Reply with quote

Yeah.
And for the code from the book you have,
Compile the code and debug it. Don't use dev-c++ (Bloodshed), it's outdated.
Use MS VC++ compiler it's the bomb! or for an alternate, use code blocks.
Go to an assault cube modding forums, they could help.
I suggest you go to this forum: http://forum.cubers.net/forum-11.html

_________________
Shameless Self Advertising Very Happy!
Steam
Just lurking around...
Back to top
View user's profile Send private message
megakoresh
Advanced Cheater
Reputation: 0

Joined: 14 Mar 2010
Posts: 94
Location: Teabag Party

PostPosted: Fri Feb 25, 2011 9:30 am    Post subject: Reply with quote

Mike Scott wrote:

How would you go about messing with the source?


The last thing I did was experiment with render targets. I tried to add a dynamic scope to weapons. It seems to work out on the crossbow with ironsights (like in smod), but its glitchy and I have no idea how to attach a scope to .357 LOL, though that was my initial idea.

Changing bullet types for weapons also is fun.

Only I don't like the testing, its annoying and long...

Also I can't send you a PM here since you did not tell me your username XD.

_________________
Rest in peace, or rest in pieces!

POOTIS!
Back to top
View user's profile Send private message
M.CORP
Grandmaster Cheater Supreme
Reputation: 28

Joined: 28 Oct 2009
Posts: 1010

PostPosted: Fri Feb 25, 2011 7:25 pm    Post subject: Reply with quote

megakoresh wrote:
Mike Scott wrote:

How would you go about messing with the source?


The last thing I did was experiment with render targets. I tried to add a dynamic scope to weapons. It seems to work out on the crossbow with ironsights (like in smod), but its glitchy and I have no idea how to attach a scope to .357 LOL, though that was my initial idea.

Changing bullet types for weapons also is fun.

Only I don't like the testing, its annoying and long...

Also I can't send you a PM here since you did not tell me your username XD.

You can PM him. And his user name is Mike Scott. Just click the pm button under his sig to pm him.

_________________
Shameless Self Advertising Very Happy!
Steam
Just lurking around...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites