mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Fixed broken get_attack_type function (from Mr.Stalin and Crafty)
Replaced some SafeWriteX usages with SafeMemSet for writing serial NOPs. Minor edits to documents.
This commit is contained in:
@@ -157,7 +157,7 @@ array - array ID to be used with array-related functions (actually an integer)
|
||||
- if you add 0x80000000 to the sid when calling set_script, map_enter_p_proc will be SKIPPED. The start proc will always be run.
|
||||
|
||||
> int get_script(object)
|
||||
- accepts a pointer to an object and returns it's scriptID (line number in scripts.lst), or -1 if the object is unscripted.
|
||||
- accepts a pointer to an object and returns its scriptID (line number in scripts.lst), or -1 if the object is unscripted.
|
||||
|
||||
> void set_self(int obj)
|
||||
- overrides the scripts self_obj for the next function call.
|
||||
@@ -214,7 +214,7 @@ Some additional reg_anim_* functions were introduced. They all work in the same
|
||||
- plays "take out weapon" animation for given holdFrameID. It is not required to have such weapon in critter's inventory.
|
||||
|
||||
> void reg_anim_turn_towards(object, tile/target, delay)
|
||||
- makes object change it's direction to face given tile num or target object.
|
||||
- makes object change its direction to face given tile num or target object.
|
||||
|
||||
> int metarule2_explosions(int arg1, int arg2)
|
||||
was made as a dirty easy hack to allow dynamically change some explosion parameters (ranged attack). All changed parameters are reset to vanilla state automatically after each attack action. Following macros are available in sfall.h:
|
||||
|
||||
Reference in New Issue
Block a user