nashmuhandes
a8c5355f31
Allow particle fade-out and fade-in to be defined individually for FSpawnParticleParams and A_SpawnParticleEx. Requires either SPF_FADE_IN_OUT or SPF_FADE_IN_HOLD_OUT flags to be enabled first, and startalpha to be 0 for fading in. The old fadestep parameter serves as the fade-in time, while the new fadeoutstep parameter controls the fade-out time. SPF_FADE_IN_HOLD_OUT ensures the particle will stay solid for the duration of its lifetime before starting to fade out.
2025-09-10 07:10:13 -03:00
Boondorl
ca98f33f42
Added support for client-side VisualThinkers
2025-07-08 16:28:40 -03:00
MajorCooke
210ee1780e
Added particle rendering to VisualThinkers.
...
To activate, use `SetParticleType(int type)`. To deactivate, use `DisableParticle()`.
Types are:
- PT_DEFAULT (default value; uses `gl_particles_style`)
- PT_SQUARE
- PT_ROUND
- PT_SMOOTH
While in this mode:
- `Texture` & `Translation` are ignored
- `Scale.X` sets the size
- `SColor` sets the color
Misc changes:
- Removed warning on textureless destruction
2025-03-09 16:17:07 -03:00
Boondorl
3db1ee9a1e
Improvements for VisualThinkers
...
Added BeginPlay virtual that's called after construction. Added getter for render style in ZScript.
2025-01-24 22:53:19 -05:00
Boondorl
c87dc5ccad
Updated VisualThinker render linkage
...
Now uses its own self-managed linked list with its level tracking the head pointer. Allows for VisualThinkers to be moved to any desired stat instead of being stuck in STAT_VISUALTHINKER.
2025-01-13 19:26:05 -05:00
Rachael Alexanderson
ccd38afbcb
- revert adding in the sprite/frame support for visual thinkers
2024-11-13 16:16:36 -05:00
Rachael Alexanderson
ad40299da4
- add sprite/frame support for VisualThinkers
2024-11-13 14:39:40 -05:00
Ricardo Luís Vaz Silva
d94a596bc2
move crucial functions out of Tick, so that light custom tick overrides can be done without calling super.Tick for non-moving visualthinkers
2024-11-13 15:47:22 -03:00
Ricardo Luís Vaz Silva
3622e2bb2a
Compress visualthinker bools into a flags field
2024-11-13 15:47:22 -03:00
Major Cooke
278ebf3202
Aded FLIPSPRITEOFFSET<X/Y> for actors and bFlipOffset<X/Y> for visual thinkers.
...
- Inverts the direction that (Sprite)Offset pushes the sprite without affecting *any* other offsets, allowing them to combine seemlessly.
2024-01-21 03:33:48 -05:00
Ricardo Luís Vaz Silva
7eab519795
Implement animated particles that aren't tied to the global animation timer
2024-01-09 06:38:08 -05:00
Ricardo Luís Vaz Silva
35e56d3f42
Minor optimizations to VisualThinker
...
* remove duplicated fields
* make native functions use direct calls
* remove unnecessary pointer from particle_t
* create HWSprite directly in Construct
2024-01-06 20:06:57 -05:00
Major Cooke
a3e0ef4c51
Renamed zsprite.zs to visualthinker.zs for consistency
2023-11-22 17:01:24 -05:00