Luis C.M
0a067eceb5
Added DBC support for overlays.
2022-05-21 20:00:45 -05:00
Luis C.M
7bd0155dbf
Implemented player skin overlays to be compatible with other mods' custom player renderers (Renders on top using events instead of registering a new renderer).
2022-05-20 05:02:18 -05:00
Luis C.M
b9266c3cc5
Added plenty more documentation for the javadoc.
2022-05-17 18:02:09 -05:00
Luis C.M
af4b467931
Updated the arrangement of interfaces and functions of ScriptParticle to be more readable for future javadoc filling.
2022-05-17 05:35:08 -05:00
Luis C.M
57ce6b7a26
Removed plenty of unnecessary setters from ScriptParticle.
2022-05-17 05:26:45 -05:00
Luis C.M
fd1aa40456
Added some documentation to a few interfaces for the javadoc.
2022-05-17 05:24:57 -05:00
Luis C.M
648206f5ba
Updated interfaces to have the new skin overlay functions.
2022-05-17 04:53:41 -05:00
Luis C.M
41401d0521
Removed redundant ScriptSkinOverlay, using SkinOverlayData in place of it, which now implements ISkinOverlay.
2022-05-17 04:46:06 -05:00
Luis C.M
8bc3190295
Implemented multiple overlay layers for CNPCs, replaces powered textures.
2022-05-17 04:34:46 -05:00
Luis C.M
e8a3eb8344
Implemented offsets for player skin overlays
2022-05-17 00:01:31 -05:00
Luis C.M
f9fcd6b9f8
Added alpha, size, scale, and speed attributes to player skin overlays.
2022-05-16 23:27:11 -05:00
Luis C.M
83fbccdf55
Added setAlpha to skin overlays
2022-05-16 22:14:11 -05:00
Luis C.M
6f9358c1ca
Glow can be disabled/enabled on skin overlays
2022-05-16 22:04:54 -05:00
Luis C.M
dbfbab7be2
Players can now have multiple skin overlays, just like GUI overlays.
2022-05-16 18:47:16 -05:00
Luis C.M
9a0aae50e0
Implemented custom player overlays.
2022-05-16 05:45:00 -05:00
Luis C.M
d6b1dba9bc
Overlays and powered effects now also share visibility with NPCs.
2022-05-16 04:11:31 -05:00
Luis C.M
a4a013387e
Cloaks are now share visibility with NPCs main model.
2022-05-16 04:08:22 -05:00
Luis C.M
71aff8f78f
Fix for updating overlay and powered textures.
2022-05-16 01:22:33 -05:00
Luis C.M
d82b9c972e
Fix for enabling/disabling global scripts.
2022-05-16 00:53:07 -05:00
Luis C.M
89ac9f5225
Fix for the global script GUI menu.
2022-05-16 00:42:40 -05:00
Luis C.M
aa9a9499aa
Implemented custom powered textures for NPC's, overlays that can have their textures move.
2022-05-15 16:47:48 -05:00
Luis C.M
ec9466c011
Diagonal flight path options now require the two horizontal and vertical path options in an NPCs way to also be clear.
2022-05-15 01:56:00 -05:00
Luis C.M
1f79b52176
More fixes for flight pathing
2022-05-15 01:21:06 -05:00
Luis C.M
44459a23a7
More fixes to flight pathing:
...
PathNavigateFlying:
Flight pathing checks if it's stuck every 10 ticks now, and clears the path to be able to path again if so.
FlyPathFinder:
If a point on the path is air, the path finder checks if the NPC will run into any blocks above that point due to its height.
2022-05-14 01:52:20 -05:00
Luis C.M
f9f73a75d2
More fixes to flight pathing.
2022-05-14 01:15:54 -05:00
Luis C.M
115b66d0c6
NPC flight fixes and a minor change to the createIItemStack function.
2022-05-13 23:14:55 -05:00
Luis C.M
02d225a269
Fix for the "npc" field in npc events/scripts.
2022-05-11 22:55:26 -05:00
Luis C.M
b20babbb35
Added implementations for ScriptItemArmor, ScriptItemBlock, and ScriptItemBook, which all extend ScriptItemStack.
2022-05-11 22:42:31 -05:00
Luis C.M
cf33b90b26
Used interfaces in implementations instead of the real classes for most scripted classes.
2022-05-11 22:08:31 -05:00
Luis C.M
6896cec417
Every function in API classes that calls the main API class now calls the loaded API wrapper, renamed to NpcAPI, instead of the abstract class, renamed to AbstractNpcAPI.
2022-05-11 17:12:48 -05:00
Luis C.M
6dea5a1cbc
Interfaces have a file strucutre resembling the file structure of their implementing classes.
2022-05-11 16:43:14 -05:00
Luis C.M
c2546c3f82
Updated interfaces to have the proper functions. Documentation will focus around them, so they'll be better organized from now on.
2022-05-11 16:31:14 -05:00
Luis C.M
aab550cdca
Implemented custom item rotation rate, and start using, using, stop using, finished using events for custom items.
2022-05-11 14:24:12 -05:00
Luis C.M
11cc46b48f
Fixed some scripted item events, and fixed positioning of scripted items.
2022-05-11 13:30:13 -05:00
Luis C.M
747730face
Fixed a bug with item uses, custom items can now do block, bow, eat, and drink animations.
2022-05-11 02:33:56 -05:00
Luis C.M
a18cf5625b
Added some more functions for scripted items
2022-05-11 02:07:06 -05:00
Luis C.M
26f5f86dca
Implemented Scripted Custom Items.
2022-05-11 01:10:31 -05:00
Luis C.M
5520fc5f2b
ScriptParticle:
...
-Added HEXColor2, HEXColorRate, and HEXColorRateStart fields, and respective setters and getters, allowing for changes in HEX color over time.
Marked plenty of old ScriptEntityParticle functions as deprecated. This includes any functions referring to scripted particles as "Entity Particles" and functions outside the API or ScriptParticle class used to spawn or create particles.
2022-05-07 03:46:37 -05:00
Luis C.M
d49a31a4fe
ScriptParticle:
...
-The spawnInWorld() function now requires a ScriptWorld object to be passed in as the first parameter.
-New spawnInWorld() function with its only parameter being a ScriptWorld object. Spawns in the world with the particle's x,y,z variables.
2022-05-07 01:40:41 -05:00
Luis C.M
a825d885f5
Removed "move" variable from CustomFX.
2022-05-06 03:43:53 -05:00
Luis C.M
c3b9096295
Scripted particles can now spawn anywhere in the world, not just attached to an entity.
...
ScriptEntityParticle renamed to ScriptParticle, and EntityCustomFX renamed to CustomFX.
Re-enabled OpenGL blending for custom particles.
2022-05-06 03:38:24 -05:00
Luis C.M
dbc9754b43
Re-enabled OpenGL blending for custom particles
2022-05-06 03:15:18 -05:00
Luis C.M
2d2933e873
ScriptEntityParticle:
...
-Particles can now start or end at a certain tick, and loop or not loop.
-Added setSize(), getWidth() and getHeight() functions.
-Added setOffset(), getOffsetX(), and getOffsetY() functions.
-Added setAnimRate() and getAnimRate() functions.
2022-05-06 01:22:48 -05:00
Luis C.M
728269ff87
ScriptEntityParticle:
...
-Added width, offset, and animation rate attributes to particles.
-Added setSize(), getWidth() and getHeight() functions.
-Added setOffset(), getOffsetX(), and getOffsetY() functions.
-Added setAnimRate() and getAnimRate() functions.
2022-05-06 00:22:28 -05:00
Luis C.M
d6c46158f5
TexturedRect classes for GUIs & overlays, and Custom GUI buttons now support textures of all sizes when using URLs.
...
EntityCustomFX:
-Added URL support
2022-05-04 23:08:30 -05:00
Luis C.M
034707abd3
ScriptEntityParticle:
...
-Fixed rotations with scripted particles
2022-05-04 21:41:32 -05:00
Luis C.M
f16e2402a6
ScriptEntityParticle:
...
-Added scripted particles which can not face the player, having their angles be absolute in the world instead of relative to the camera.
-set/getFacePlayer() functions added.
2022-05-04 18:08:54 -05:00
Luis C.M
1cd3ff31b6
Increased the angle limit while pathing for flying NPCs from 15 to 20 degrees
2022-05-04 04:58:59 -05:00
Luis C.M
8033b8ba19
Tweaked vertical speed calculations for NPC flight
2022-05-04 04:10:14 -05:00
Luis C.M
a2dd0e502a
Slightly improved return to start checks
2022-05-04 03:10:16 -05:00