diff options
author | RoyalBlue1 <malte.hoermeyer@web.de> | 2022-02-21 00:54:52 +0100 |
---|---|---|
committer | RoyalBlue1 <malte.hoermeyer@web.de> | 2022-03-25 19:59:02 +0100 |
commit | c56e68e17c7f525a69311e36ba76a6aad3e27ee4 (patch) | |
tree | 13e07deccbdbb96593e7bda795f0912a821eb0cc /Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut | |
parent | bc47d316929fcad6f9e39309bf1ad9bcebf4bd2b (diff) | |
download | NorthstarMods-c56e68e17c7f525a69311e36ba76a6aad3e27ee4.tar.gz NorthstarMods-c56e68e17c7f525a69311e36ba76a6aad3e27ee4.zip |
Added wave event logic
added some first Events
created method to get 9 most spawned enemies for client ui
split Harvester Fx to make shield disappear when down
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut index 71bbd345..e5e60bf2 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut @@ -1,5 +1,6 @@ global function SpawnHarvester -global function startHarvesterFX +global function generateBeamFX +global function generateShieldFX global struct HarvesterStruct { entity harvester @@ -45,13 +46,18 @@ HarvesterStruct function SpawnHarvester(vector origin,vector angles,int health,i return ret } -HarvesterStruct function startHarvesterFX(HarvesterStruct harvester) +HarvesterStruct function generateBeamFX(HarvesterStruct harvester) { entity Harvester_Beam = StartParticleEffectOnEntity_ReturnEntity(harvester.harvester,GetParticleSystemIndex(FX_HARVESTER_BEAM),FX_PATTACH_ABSORIGIN_FOLLOW,0) - EffectSetControlPointVector( Harvester_Beam, 1, < 126.0, 188.0, 236.0 > ) - entity Harvester_Shield = StartParticleEffectOnEntity_ReturnEntity(harvester.harvester,GetParticleSystemIndex(FX_HARVESTER_OVERSHIELD),FX_PATTACH_ABSORIGIN_FOLLOW,0) - EffectSetControlPointVector( Harvester_Shield, 1, < 126.0, 188.0, 236.0 > ) + EffectSetControlPointVector( Harvester_Beam, 1, GetShieldTriLerpColor(0.0) ) harvester.particleBeam = Harvester_Beam - harvester.particleShield = Harvester_Shield return harvester } + +HarvesterStruct function generateShieldFX(HarvesterStruct harvester) +{ + entity Harvester_Shield = StartParticleEffectOnEntity_ReturnEntity(harvester.harvester,GetParticleSystemIndex(FX_HARVESTER_OVERSHIELD),FX_PATTACH_ABSORIGIN_FOLLOW,0) + EffectSetControlPointVector( Harvester_Shield, 1, GetShieldTriLerpColor(0.0) ) + harvester.particleShield = Harvester_Shield + return harvester +}
\ No newline at end of file |