How to prevent an Inventory to disappear when crushed?
- PrinceOfFunky
- Godlike
- Posts: 1202
- Joined: Mon Aug 31, 2015 10:31 pm
How to prevent an Inventory to disappear when crushed?
I just noticed weapon pickups disappear when a mover crushes them, how can I prevent this from happening?
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: How to prevent an Inventory to disappear when crushed?
See code of mover (I guess that Inventory's owner is None):PrinceOfFunky wrote:I just noticed weapon pickups disappear when a mover crushes them, how can I prevent this from happening?
Code: Select all
// Return true to abort, false to continue.
function bool EncroachingOn( actor Other ) {
...
if ( Other.IsA('Fragment') || (Other.IsA('Inventory') && (Other.Owner == None)) )
{
Other.Destroy();
return false;
}
...
"If Origin not in center it be not in center." --Buggie
- EvilGrins
- Godlike
- Posts: 9803
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
- Contact:
Re: How to prevent an Inventory to disappear when crushed?
Before you get crushed, throw all your weapons away!
http://unreal-games.livejournal.com/
Smilies · viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins
Re: How to prevent an Inventory to disappear when crushed?
Tossed weapons should have bCollideWorld set to false.
The right question is: how you'll set that var at the right time?
The right question is: how you'll set that var at the right time?
- PrinceOfFunky
- Godlike
- Posts: 1202
- Joined: Mon Aug 31, 2015 10:31 pm
Re: How to prevent an Inventory to disappear when crushed?
I'm not talking about Weapons only, and not only about tossed weapons, a Mover is an Actor, so the problem is bCollideActor, which is needed if you want a pawn to pick that inventory up.Higor wrote:Tossed weapons should have bCollideWorld set to false.
The right question is: how you'll set that var at the right time?
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