Skip to content

Commit

Permalink
Added wave event logic
Browse files Browse the repository at this point in the history
added some first Events
created method to get 9 most spawned enemies for client ui
split Harvester Fx to make shield disappear when down
  • Loading branch information
RoyalBlue1 committed Feb 20, 2022
1 parent 5fe2f99 commit 5579adf
Show file tree
Hide file tree
Showing 4 changed files with 465 additions and 91 deletions.
18 changes: 12 additions & 6 deletions Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
global function SpawnHarvester
global function startHarvesterFX
global function generateBeamFX
global function generateShieldFX

global struct HarvesterStruct {
entity harvester
Expand Down Expand Up @@ -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
}
Loading

1 comment on commit 5579adf

@wolf109909
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coooool

Please sign in to comment.