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
1f79b52176
More fixes for flight pathing
2022-05-15 01:21:06 -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
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
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
85a1892c71
Changes to NPC flight:
...
-Improved flight pathing greatly, MUCH MUCH smoother now.
-The "flying speed" of an NPC now correctly speeds up how fast the NPC climbs vertically while flying
-NPCs now properly return to start while flying
2022-05-04 03:06:40 -05:00
KAMKEEL
71216350d8
Merge branch 'master' into dev
2022-04-09 02:14:21 -04:00
KAMKEEL
0732d98ff8
1.5.3 Gradle Update | Add Version Compatibility Changes
...
Update Version to 1.5.3
Remove Useless String Statements / Comments
Add Temporary Fixes to Version Compatibility as permanent fixes
2022-04-09 01:31:21 -04:00
KAMKEEL
5ad6bb094a
Merge branch 'master' into dev
2022-04-09 01:22:15 -04:00
Kamron Vaswani
32f89f8e92
Merge pull request #45 from c0508383/master
...
Important script hook fix, additions to dialog and dialog closed hooks for NPCs
2022-04-09 01:20:53 -04:00
Luis C.M
65bb3b5939
Important fix to some NPC hook scripts crashing, added option and dialog object fields to local NPC dialog and NPC dialog closed scripts
2022-04-09 00:17:16 -05:00
KAMKEEL
8c677901d0
Reorganized Cape Textures
2022-04-09 01:11:05 -04:00
KAMKEEL
ebc0b96582
Code Cleanup for Bow Fix
2022-04-05 17:55:13 -04:00
Luis C.M
18ff2bff78
Implemented Global NPC Events!
...
All NPCs activate these scripts. If a player wants to create a script that's universally used by all NPCs, this allows for that to happen with a lot of ease!
2022-03-23 03:54:06 -05:00
luisc
65ab37158f
Fixed flying limits not working on flying NPCs with the new smoother flight
2022-02-27 23:23:41 -06:00
luisc
d2d3cef681
When setMaxTicks() is called and the remaining ticks in a timer are greater than that value, the remaining ticks are updated to the new max tick value.
2022-02-27 23:11:52 -06:00
luisc
403738262c
Added timer functions.
...
ticks(int id):
Gets the remaining ticks in the timer that matches this id.
setTicks(int id, int ticks):
Sets the remaining ticks in the timer that matches this id.
maxTicks(int id):
Gets the maximum ticks that must elapse for the timer that matches this id to finish.
setMaxTicks(int id, int ticks):
Sets the maximum ticks that must elapse for the timer that matches this id to finish.
repeats(int id):
Returns true if the timer with the given id is set to repeat, false otherwise.
setRepeats(int id, bool repeat):
Sets whether the timer with the given id should repeat. If true, the timer will repeat, and not repeat otherwise.
2022-02-27 23:08:24 -06:00
luisc
ee02988d8c
Removed client-side imports from EntityNPCFlying
2022-02-22 22:14:05 -06:00
luisc
450e065e27
Slightly improved flight pathing downwards.
2022-02-22 01:52:47 -06:00
luisc
732e97e0fe
Override updateLeashedState() function in EntityNPCInterface.
...
NPCs can't be leashed anyway. This should avoid the "does not know how to add entity" crash with NPCs.
2022-02-20 00:56:57 -06:00
luisc
33e884c217
Flying is now smoother, NPCs can pathfind downwards easier while flying.
2022-02-18 03:34:20 -06:00
luisc
1af875aea9
Fixed concurrent modification bug with NPC tasks.
2022-01-31 23:01:52 -06:00
luisc
092b3ce0c1
Fixed overloaded hurt(damage,entity) function not working when an entity is to be hurt by a player
2022-01-22 22:50:01 -06:00
luisc
007660f16f
Added collision options for CNPCs.
2022-01-14 19:07:41 -06:00
luisc
555ceb741f
Added a modifiable and toggleable flying height limit to NPCs
2022-01-13 05:28:20 -06:00
luisc
d50f51e208
Added handler support to NPC API.
2022-01-10 15:21:48 -06:00
luisc
32792e7d6f
Added updateClient() function to ScriptNpc.
2022-01-03 21:30:38 -06:00
luisc
1a78b2dad7
Timers are only updated if a timer exists for a player.
2021-12-17 17:30:50 -06:00
luisc
00557df9a7
Fixed players being able to push NPCs around.
2021-12-13 00:16:06 -06:00
luisc
ba0f21dc26
Revert "Added npc.setPoweredTexture(directory) and npc.getPoweredTexture() functions, along with a new powered texture resource."
...
This reverts commit ba4bf107b5 .
2021-12-11 08:41:54 -06:00
luisc
ba4bf107b5
Added npc.setPoweredTexture(directory) and npc.getPoweredTexture() functions, along with a new powered texture resource.
...
Sample code:
npc.setPoweredTexture("customnpcs:textures/entity/npc_armor.png");
2021-12-08 23:29:08 -06:00
luisc
8c602c4d16
Adjusted floating: NPCs don't float when they're knocked back or hurt.
2021-12-08 17:43:27 -06:00
luisc
d37e986006
Fixed NPCs bobbing in the air when flying.
2021-12-08 15:34:41 -06:00
luisc
94c7df410b
Added fly gravity for NPCs, configurable with npc.setFlyGravity(gravity) and npc.getFlyGravity()
2021-12-08 04:50:23 -06:00
luisc
c2564de470
NPCs properly stay floating when not navigating and in the air.
2021-12-08 04:41:41 -06:00
luisc
2147bd00d0
Pathing classes for NPC flying added. NPCs can now follow tactical variants while flying, and their pathing is a LOT better.
2021-12-08 04:00:28 -06:00
luisc
43b3241801
Implemented path navigator and move helper for flying NPCs (npc.getNavigator() and npc.getMoveHelper() used to return the default navigator and move helper, added override function).
...
Improved Flying AI getting stuck when trying to get over a block towards the enemy.
2021-12-07 03:57:57 -06:00
luisc
12333de3a1
knockback() function for ScriptEntity now *only* knocks the entity back instead of hitting it.
...
Flying NPC's get knocked back properly, and their vertical speed has been increased.
Flying NPC's vertical flying speed can be changed by npc.setFlySpeed(double speed) from ScriptNpc.
2021-12-06 00:10:10 -06:00
luisc
3cd1410c19
Added new ScriptDBCPlayer class for manipulating Dragon Block C attributes.
...
Flying NPCs no longer chase you down if you're dead, or if they're dead.
2021-12-05 15:04:03 -06:00
luisc
23686dc3b8
Enabled fly button in movement, and extended max values for several NPC attributes, converting some to floats and doubles.
...
NPCs fly with speed based on their movement speed now.
2021-12-03 00:49:10 -06:00
luisc
44d4e74279
Enabled fly button in movement, and set max value for fields as Integer.MAX_VALUE for various fields.
2021-12-01 18:46:48 -06:00
luisc
72869e6a78
Consolidated EventScriptContainer and ScriptContainer into a single ScriptContainer class. NPCs are now able to fly when ai.movementType == 1.
2021-12-01 15:31:05 -06:00
luisc
f3ebf86b1e
Critical fix to NBT loading when loading entities into chunks from a different version.
2021-11-29 21:21:49 -06:00
KAMKEEL
3069488c54
Merge branch 'dev'
2021-11-26 04:35:09 -05:00
luisc
ecbfd7dab0
Fixed some console spam caused by a NullPointerException when checking scriptVisibleToPlayer(player) in ModelMPM
2021-11-23 15:08:35 -06:00
luisc
d24422c3a1
Added setVisibleTo(player,visible) and isVisibleTo(player) to ScriptNpc
2021-11-22 23:34:02 -06:00
luisc
a29058d696
Fixed timers on the server-side.
2021-10-22 02:22:45 -05:00
luisc
4de969f6c9
Implemented scripted timers for players and NPCs.
2021-10-20 23:04:52 -05:00
luisc
5515f5ef83
Fixed executeCommand() function for scripting API on the server-side.
2021-10-19 19:49:43 -05:00
luisc
72f2c3c60a
Implemented global Forge events. Reorganized NPC API files.
2021-10-18 06:33:39 -05:00