diff options
author | zxcPandora <81985226+zxcPandora@users.noreply.github.com> | 2023-01-25 01:57:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 18:57:38 +0100 |
commit | e8a2e28b59c398821dc0ffb802ec26c385ed5172 (patch) | |
tree | 3d98ec4491202c6233e03ad24552ce46a4493a78 /Northstar.CustomServers/mod/scripts/vscripts/ai | |
parent | 540e4e51957652d542095e6eed27c442fad1eeaa (diff) | |
download | NorthstarMods-e8a2e28b59c398821dc0ffb802ec26c385ed5172.tar.gz NorthstarMods-e8a2e28b59c398821dc0ffb802ec26c385ed5172.zip |
[FD]New features and bug fix (#566)
* Correction of variable type
Correction of variable type
* weapon type check
idk why Respawn use weapon.GetWeaponType(),it doesn't work for actually anti-titan weapon.(Because they didn't have this key value)
* fix wrong reaper icon
fix wrong reaper icon
* Show store in the minimap during buy time
Show store in the minimap during buy time
* ping store test
ping store test
* Add missing event and correct error event
Add missing event and correct error event
* Add turret repair tip
Add turret repair tip
* Add wave restart event
Add wave restart event
* fix bug
return when titan can get heal without battery.
Example:Vanguard
* Track entity deployed by player
1.Track entity deployed by player
2.Destroy player deployed entity this round after wave lost
3.Don't destroy those entities not deployed in this round
* use untyped
use untyped
* update for #565
update for #565
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/ai')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_turret.gnut | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_turret.gnut b/Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_turret.gnut index 5961d839..90f0b4b2 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_turret.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/ai/_ai_turret.gnut @@ -43,6 +43,13 @@ void function RevivableTurret_DamageCallback( entity turret, var damageInfo ) function RevivableTurret_UseFunction( player , turret ) { entity tur = expect entity( turret ) + entity ent = expect entity( player ) + entity owner = tur.GetBossPlayer() + if( ent != owner ) + { + int ownerEHandle = owner.GetEncodedEHandle() + MessageToTeam( TEAM_MILITIA,eEventNotifications.FD_TurretRepair, null, ent, ownerEHandle ) + } thread RevivableTurret_Revive( tur ) return true } @@ -68,4 +75,4 @@ void function RevivableTurret_Kill( entity turret ) wait 1 turret.SetNoTarget( true ) turret.DisableTurret() -}
\ No newline at end of file +} |