Mover's CrushWhenEncroach with bots solution
- PrinceOfFunky
- Godlike
- Posts: 1204
- Joined: Mon Aug 31, 2015 10:31 pm
Mover's CrushWhenEncroach with bots solution
I know that bots cannot die crushed by movers since CrushWhenEncroach only triggers KilledBy() which is implemented only in PlayerPawn, but you can kill it with a SpecialEvent in KillInstigator state that can be triggered by mover bumps using the BumpEvent variable.
- Attachments
-
- EXP-MoverCrushBot.unr
- (27.34 KiB) Downloaded 20 times
Some of the stuff I created:
Mods: VisualStreamPlayer, TeamColorOverlay, FunkyMoves, CommandSystem, FunkyPointer, AdvancedMutator, CommandEvent, ParticleSystem, LifeSucks
Gametypes: UTRoyale, UnrealRace
Hacks : Create/Write files with UScript, Read files with UScript, Running files with UScript
Maps: CTF-(POF)-Escher_Fix, CTF-(NotYet)HyperBlast, DM-(NotYet)Condemned, CTF-StalwartXS, UR-Hyperblast, DM-3072-ItalyKinda, DOM-NRMC-Cathode, CTF-TAMC-UnderPressure
Concepts: RabbitHole, Builder gun, HeatMap, Playable arcade cabinet, Stalwartception, Non Conventional Weapons, MainFrame
Memes: Meme#1, Meme#2
Mods: VisualStreamPlayer, TeamColorOverlay, FunkyMoves, CommandSystem, FunkyPointer, AdvancedMutator, CommandEvent, ParticleSystem, LifeSucks
Gametypes: UTRoyale, UnrealRace
Hacks : Create/Write files with UScript, Read files with UScript, Running files with UScript
Maps: CTF-(POF)-Escher_Fix, CTF-(NotYet)HyperBlast, DM-(NotYet)Condemned, CTF-StalwartXS, UR-Hyperblast, DM-3072-ItalyKinda, DOM-NRMC-Cathode, CTF-TAMC-UnderPressure
Concepts: RabbitHole, Builder gun, HeatMap, Playable arcade cabinet, Stalwartception, Non Conventional Weapons, MainFrame
Memes: Meme#1, Meme#2
- papercoffee
- Godlike
- Posts: 10462
- Joined: Wed Jul 15, 2009 11:36 am
- Personal rank: coffee addicted !!!
- Location: Cologne, the city with the big cathedral.
- Contact:
-
- Godlike
- Posts: 3774
- Joined: Fri Jan 14, 2011 1:53 pm
- Personal rank: -Retired-
Re: Mover's CrushWhenEncroach with bots solution
I think that one was a triggered zone.
So long, and thanks for all the fish
- PrinceOfFunky
- Godlike
- Posts: 1204
- Joined: Mon Aug 31, 2015 10:31 pm
Re: Mover's CrushWhenEncroach with bots solution
Oh damn you're right! Noob mepapercoffee wrote:DM-HealPod?
Fact is that in this topic we talked about crushing bots not working cause the code in the Mover doesn't allow it, but now I see that in HealPod it works and it has the variable EncroachDamage set.
So it means that for this:
there is a workaround.Barbie wrote:Found and fixed the issue in a way. In short: A Mover is calling a function that is only implemented for PlayerPawn.
Long description: if a Mover touches an Actor, the engine calls Mover's function EncroachingOn(actor Other). If Mover's EncroachType is set to ME_CrushWhenEncroach, Other.KilledBy(Instigator) is called - that function is in fact defined in Actor, but empty there. Only PlayerPawn implements this function:This also explains why a crushing Mover does not hurt Bots.Code: Select all
function KilledBy(pawn EventInstigator) { Health = 0; Died( EventInstigator, 'Suicided', Location ); }
Some of the stuff I created:
Mods: VisualStreamPlayer, TeamColorOverlay, FunkyMoves, CommandSystem, FunkyPointer, AdvancedMutator, CommandEvent, ParticleSystem, LifeSucks
Gametypes: UTRoyale, UnrealRace
Hacks : Create/Write files with UScript, Read files with UScript, Running files with UScript
Maps: CTF-(POF)-Escher_Fix, CTF-(NotYet)HyperBlast, DM-(NotYet)Condemned, CTF-StalwartXS, UR-Hyperblast, DM-3072-ItalyKinda, DOM-NRMC-Cathode, CTF-TAMC-UnderPressure
Concepts: RabbitHole, Builder gun, HeatMap, Playable arcade cabinet, Stalwartception, Non Conventional Weapons, MainFrame
Memes: Meme#1, Meme#2
Mods: VisualStreamPlayer, TeamColorOverlay, FunkyMoves, CommandSystem, FunkyPointer, AdvancedMutator, CommandEvent, ParticleSystem, LifeSucks
Gametypes: UTRoyale, UnrealRace
Hacks : Create/Write files with UScript, Read files with UScript, Running files with UScript
Maps: CTF-(POF)-Escher_Fix, CTF-(NotYet)HyperBlast, DM-(NotYet)Condemned, CTF-StalwartXS, UR-Hyperblast, DM-3072-ItalyKinda, DOM-NRMC-Cathode, CTF-TAMC-UnderPressure
Concepts: RabbitHole, Builder gun, HeatMap, Playable arcade cabinet, Stalwartception, Non Conventional Weapons, MainFrame
Memes: Meme#1, Meme#2
Re: Mover's CrushWhenEncroach with bots solution
Yes but, doesn't any mover give kill point if a trigger is used to move the mover ?
Binary Space Partitioning
- PrinceOfFunky
- Godlike
- Posts: 1204
- Joined: Mon Aug 31, 2015 10:31 pm
Re: Mover's CrushWhenEncroach with bots solution
It doesn't. I made a mover class which crushes any type of pawns, but since HealPod][ uses the standard mover class and it works the same way, at that point I believe what I did was useless lol.Red_Fist wrote:Yes but, doesn't any mover give kill point if a trigger is used to move the mover ?
Some of the stuff I created:
Mods: VisualStreamPlayer, TeamColorOverlay, FunkyMoves, CommandSystem, FunkyPointer, AdvancedMutator, CommandEvent, ParticleSystem, LifeSucks
Gametypes: UTRoyale, UnrealRace
Hacks : Create/Write files with UScript, Read files with UScript, Running files with UScript
Maps: CTF-(POF)-Escher_Fix, CTF-(NotYet)HyperBlast, DM-(NotYet)Condemned, CTF-StalwartXS, UR-Hyperblast, DM-3072-ItalyKinda, DOM-NRMC-Cathode, CTF-TAMC-UnderPressure
Concepts: RabbitHole, Builder gun, HeatMap, Playable arcade cabinet, Stalwartception, Non Conventional Weapons, MainFrame
Memes: Meme#1, Meme#2
Mods: VisualStreamPlayer, TeamColorOverlay, FunkyMoves, CommandSystem, FunkyPointer, AdvancedMutator, CommandEvent, ParticleSystem, LifeSucks
Gametypes: UTRoyale, UnrealRace
Hacks : Create/Write files with UScript, Read files with UScript, Running files with UScript
Maps: CTF-(POF)-Escher_Fix, CTF-(NotYet)HyperBlast, DM-(NotYet)Condemned, CTF-StalwartXS, UR-Hyperblast, DM-3072-ItalyKinda, DOM-NRMC-Cathode, CTF-TAMC-UnderPressure
Concepts: RabbitHole, Builder gun, HeatMap, Playable arcade cabinet, Stalwartception, Non Conventional Weapons, MainFrame
Memes: Meme#1, Meme#2