8,018
edits
Paradox-01 (talk | contribs) (vid... yes... rudimentary...) |
Paradox-01 (talk | contribs) m (+ hypospray glow texture) |
||
Line 370: | Line 370: | ||
====HUD==== | ====HUD==== | ||
=====Hyposprays===== | =====Hyposprays===== | ||
'''Object creation''' | |||
''' | In this attempt the glow texture was applied to a plane that is attached to the hypo mesh. Right now the actual hypo mesh is just a placeholder made of a cuboid with green ellipses. The transparency seemed to make it darker than expected so I added some input to the material's emissive color. See gallery below. | ||
<gallery> | |||
Image:M_HypoGlow_docu.png|hypo material blueprint | |||
Image:Hypo_Blueprint.png|hypo object blueprint | |||
Image:Hypos_InGame.jpg|ingame result | |||
</gallery> | |||
'''Functionality implementation''' | |||
In the following there is code that let's you pickup Hyposprays (1 + 2) and use them to regain health (3 + 4). | In the following there is code that let's you pickup Hyposprays (1 + 2) and use them to regain health (3 + 4). | ||
Line 382: | Line 388: | ||
If you add a trigger volume to your hypospray object it will act like a new collision box. This can be used to adds some tolerance to the pickup distance. Otherwise the character has to be not just really close but to actually overlap the object. | If you add a trigger volume to your hypospray object it will act like a new collision box. This can be used to adds some tolerance to the pickup distance. Otherwise the character has to be not just really close but to actually overlap the object. | ||
<gallery> | |||
Image:UE4_Pickup_Hypo.png|[https://1drv.ms/t/s!Asn4fV_yvODigUSQY6R4bhXJqRFi Code:] Press key to pickup hypo | |||
Image:UE4_Add_Hypo_to_inventory.png|[https://1drv.ms/t/s!Asn4fV_yvODigUFiFR2WCYIsvnl0 Code:] Adds hypo to inventory | |||
Image:UE4_Apply_Hypo.png|[https://1drv.ms/t/s!Asn4fV_yvODigUPgtVd9c21Szk68 Code:] Press key to apply hypo | |||
Image:UE4_Add_Hypo_Health.png|[https://1drv.ms/t/s!Asn4fV_yvODigUIEKdkZj6rFdo1o Code:] Increases health via hypo | |||
</gallery> | |||
Youtube: [https://youtu.be/y4sxRP-GrVQ Oni UE4 Test #2 - picking up hyposprays and using them] | Youtube: [https://youtu.be/y4sxRP-GrVQ Oni UE4 Test #2 - picking up hyposprays and using them] | ||
Todo | '''Todo''' | ||
* new hypo object mesh | |||
* pickup animations (kneel and take, take, "roll-take") | * pickup animations (kneel and take, take, "roll-take") | ||
* condition to prevent pickup with certain animations | * condition to prevent pickup with certain animations | ||
Line 393: | Line 407: | ||
''' | '''Health bar interaction''' | ||
If base health is 200 points... | Observation from Oni 1 vanilla health bar. If base health is 200 points... | ||
* remaining health is flashing at 60 points every 2s one time | * remaining health is flashing at 60 points every 2s one time |
edits