Blockland Forums > Modification Help
Hit-detection with weapons
mp7964:
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.
xcruso:
--- Quote from: mp7964 on August 14, 2011, 05:00:08 PM ---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.
--- End quote ---
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."
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...
xcruso:
--- Quote from: mp7964 on August 14, 2011, 05:11:29 PM ---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...
--- End quote ---
You talking Server-Sided or Client-Sided?
mp7964:
--- Quote from: xcruso on August 14, 2011, 05:14:51 PM ---You talking Server-Sided or Client-Sided?
--- End quote ---
Client sided.