Page 1 of 1

Translocator and BlockAll

Posted: Sun Feb 10, 2019 3:50 pm
by Barbie
Because some players "cheat" by slipping through small holes with their TranslocatorTarget I added a BlockAll to prevent this. But a BlockAll - despite its name - does not block a TranslocatorTarget in online games.

Is there anything else that I can add (via UScript while map is loaded) to block a TranslocatorTarget?

Re: Translocator and BlockAll

Posted: Sun Feb 10, 2019 5:27 pm
by sektor2111
Using another sort of Blocker with a function "Touch" properly written ? I think you know what I mean...

Re: Translocator and BlockAll

Posted: Sun Feb 10, 2019 8:18 pm
by Red_Fist
Use Cloudzones, loL , actually I wonder if that would work, the trans probably passes right through. What if you used specialevents, then the trans could create the event to stop player, not just the kill event but some other form to stop the trans or something and a message warning so players know things are blocked.

Wait, can't you use a trigger using ,class. collision ? then you could trigger something.

Re: Translocator and BlockAll

Posted: Sun Feb 10, 2019 9:06 pm
by Higor
Translocator is half-assedly coded, the only GOOD coded translocator module is Siege's.
https://github.com/CacoFFF/SiegeIV-UT99 ... rTarget.uc

Re: Translocator and BlockAll

Posted: Sun Feb 10, 2019 9:29 pm
by JackGriffin
^this. Higor is right. I spent a weekend trying to 'fix' the trans as there are several ways to cheat with it. It just needs to be remade, the way it functions is not good at all.

Re: Translocator and BlockAll

Posted: Mon Feb 11, 2019 5:39 am
by Barbie
Red_Fist wrote:Use Cloudzones
Sorry, you misunderstood what I want. For example there is a map with a small hole that leads to next level. If played without cheating a mover opens a passing to next level after finishing the current level. But it is possible to skip the current level by throwing the translocator through the hole. For that I want to spawn an obstacle ("BlockAll") at the hole while the map is loaded to prevent this.
Higor wrote:Translocator is half-assedly coded, the only GOOD coded translocator module is Siege's.
Thanks, after some adaptations ("sgBuilding" is unknown in UT) it works fine. :rock:

But I run into another problem with the pickup sound then: The TranslocatorTarget of my Monsterhunt version is not picked up when the owner touches it. I want to have that configurable and defined a bool for it:

Code: Select all

var config bool bPickupTranslocatorTargetOnRunover;
Then I adapted the code in the function Touch:

Code: Select all

simulated singular function Touch( Actor Other )
...
	bMasterTouch = Other == Instigator;

	// if I enable this line, the sound is played, otherwise not
	// bPickupTranslocatorTargetOnRunover = true;

	if ( bMasterTouch && ! bPickupTranslocatorTargetOnRunover)
		return;

	if (Physics == PHYS_None)
	{
		if ( bMasterTouch )
		{
			PlaySound(Sound'Botpack.Pickups.AmmoPick',,2.0);
			...
		}
		return;
	}
	if ( bMasterTouch )
		return;
	...
It looks like if the value of the variable bPickupTranslocatorTargetOnRunover is loaded from the configuration file, the pickup sound is not played.


@Admins: maybe move this to section "Coding"?

Re: Translocator and BlockAll

Posted: Mon Feb 11, 2019 1:31 pm
by UnrealGGecko
Sure thing, *moves thread to Coding* :thuup: