Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Verifying Damage At a Range
Archive: 2 posts
Hello! I've been working on a realistic shooter similar to DayZ, and I was wondering if anyone has an idea on how to have veryifying bullet damage at a range. Thanks for answering! | 2012-07-26 23:38:00 Author: Unknown User |
Could you explain what you mean by 'verifying'? Do you mean varying? If so: You could put a tag 'Range' on the player character, then shoot a projectile which has a tag sensor set to closeness detecting that tag. Connect that to a tag on the projectile with the tag 'Damage'. For the enemies, connect an Impact Sensor and a Tag sensor (both with 'Damage&apos to an AND gate. Output this AND gate to however you are dealing damage, eg: feedback loop. Ensure the Impact Sensor is set to 'touching' and 'rigid connections'. Ensure the tag sensor on the enemy is set to 'tag strength' and has a range which extends past the enemy's extremities. ~~~~ You could also simply use a tag sensor on the enemies to detect closeness to the player. And an impact sensor to detect collisions with the projectiles. Using this will typically produce the full range 0-100 values. I suggest using a timer health system as that has a minimum health of 300, whereas feedback loops have a maximum of 100. If you want point-blank shots to 1-hit kill though, the feedback loop should be fine. That is, of course, ignoring the use of values less than 1/100. | 2012-07-27 01:24:00 Author: SSTAGG1 Posts: 1136 |
LBPCentral Archive Statistics
Posts: 1077139
Threads: 69970
Members: 9661
Archive-Date: 2019-01-19
Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.