Author Topic: Hit-detection with weapons  (Read 1345 times)

I am trying to make a code where when you get a hit on a player with a weapon (In a minigame, of course) it would make a "Hit-Marker" appear like in Call of Duty, as well as multiply damage if you get a headshot, and if you get a headshot, it will make a diffrent hitmarker appear. Is this possible?

EDIT: I will use the Projectile::Damage function, as well.

I am trying to make a code where when you get a hit on a player with a weapon (In a minigame, of course) it would make a "Hit-Marker" appear like in Call of Duty, as well as multiply damage if you get a headshot, and if you get a headshot, it will make a diffrent hitmarker appear. Is this possible?

EDIT: I will use the Projectile::Damage function, as well.



Ehm there is so many topic's about this in the past weeks, i even made one my self for some time ago, I ended up with" It's Impossible."

The thing is, it isn't. I know that it is possible to detect damage, because of say the hit-combo notifier. It is also possible to display a bitmap image in the center of the screen.

EDIT: It is also possible to detect if the projectile hits the head node, which is I think is 7...
« Last Edit: August 14, 2011, 05:13:20 PM by mp7964 »

The thing is, it isn't. I know that it is possible to detect damage, because of say the hit-combo notifier. It is also possible to display a bitmap image in the center of the screen.

EDIT: It is also possible to detect if the projectile hits the head node, which is I think is 7...

You talking Server-Sided or Client-Sided?

You talking Server-Sided or Client-Sided?

Client sided.

Client sided.

Aah Sorry it's Impossible i try ed my self and failed.

You should talk to some of these OP PRO Coders.

I got told its impossible but you can always wait if someone answers.

Detecting whether you are in a minigame dealing damage to another player isn't impossible. Nor is displaying a transparent bitmap image to show a hit-box.

Detecting whether you are in a minigame dealing damage to another player isn't impossible. Nor is displaying a transparent bitmap image to show a hit-box.

Ok.

Tell me if you succeed.  :D

Im sure this is impossible client sided but it should be possible server-sided.

MMkay. I'll PM you gloating that it worked  :cookieMonster:

Warning - while you were typing a new reply has been posted. You may wish to review your post.

FF

Im sure this is impossible client sided but it should be possible server-sided.

I see, but how would I do this server-sided?

loving doubletoast :c

EDIT: Just PM with with a method, if you will <3
« Last Edit: August 14, 2011, 05:31:37 PM by mp7964 »

Stratofortress's Desert Eagle does exactly this

Client-Sided damage detection is impossible as Plornt said.

However Server Sided damage detection is possible, again just as Plornt said.

This is indeed possible.

However, it would require server and client communication, meaning people would have to own your mod for it to work for them. That's a rather large drawback, but again, still possible to accomplish.

it would have to be like DrenDran's mod, where the server would have a mod that would force the clients to download a mod for their client to communicate with the server if you really wanted to do this.