111
This commit is contained in:
39
Base/CallBack/PushDamage.nut
Normal file
39
Base/CallBack/PushDamage.nut
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
文件名:PushDamage.nut
|
||||
路径:Base/CallBack/PushDamage.nut
|
||||
创建日期:2024-08-30 14:41
|
||||
文件用途:发生伤害时
|
||||
*/
|
||||
PushDamageFontDataFuncTab <- {};
|
||||
PushDamageFontFuncTab <- {};
|
||||
|
||||
function Sq_PushDamageData(ObjAddress, MySelfAddress, Value) {
|
||||
// print("MyCharacter: " + format("%02x", L_sq_RA(0x1AB7CDC)));
|
||||
// print("ObjAddress: " + format("%02x", ObjAddress));
|
||||
// print("A1: " + format("%02x", A1));
|
||||
// print("A2: " + format("%02x", A2));
|
||||
// print(" ");
|
||||
foreach(Func in PushDamageFontFuncTab) {
|
||||
Func(ObjAddress, MySelfAddress, Value);
|
||||
}
|
||||
}
|
||||
|
||||
function Sq_PushDamageFontData(ObjAddress, X, Y, Z, Value, Type, A1, A2) {
|
||||
// print("MyCharacter: " + format("%02x", L_sq_RA(0x1AB7CDC)));
|
||||
// print("ObjAddress: " + format("%02x", ObjAddress));
|
||||
// print("A1: " + format("%02x", A1));
|
||||
// print("A2: " + format("%02x", A2));
|
||||
// print(" ");
|
||||
|
||||
// if (A2)
|
||||
// print(format("%02x", L_Sq_GetObjectIsCharacter(A2)));
|
||||
local Flag = true;
|
||||
foreach(Func in PushDamageFontDataFuncTab) {
|
||||
local Ret = Func(ObjAddress, X, Y, Z, Value, Type, A1, A2);
|
||||
if (Ret == false) {
|
||||
Flag = false;
|
||||
}
|
||||
}
|
||||
|
||||
return Flag;
|
||||
}
|
||||
Reference in New Issue
Block a user