Would a "virtual player" be possible using zscript?
The idea behind this is it try and emulate the famous 55hp build from the now old mmo guild wars, where the player was was immune to any type of mele spike damage and only took around 5 damage or less no matter if the damage was 50 or a million due to being limited to a percentage of the max health of the player per hit, and im not sure if you could interrupt any damage you would take using zscript and at the same time calculate how much you would have taken and then do math after that.
If the real player is invulnerable i assume you can't calculate the damage taken unless you can trick the game engine to think its hurting the player, so that is why i had the idea for a virtual player but that would not be needed if you knew how to intercept damage but it sounds very difficult unless you either know it from the ground up or know how to trick the game.
Tldr: can you be invulnerable to some types of damage while still knowing how much damage you would have taken?
Virtual player gets the damage possible?
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: Virtual player gets the damage possible?
DamageMobj is your friend.