Author Topic: Is there anyway to make players not collide with other players?  (Read 2495 times)

/title

We need an addon like this because a lot of times trollers would block players from moving on.
Also this is perfect for servers & people who wants players to not collide accidentally.

there is no good way to do this

one could make the collision box for players be really small, but then they could be able to clip into walls halfway, and probably have an easier time glitching through walls and floors completely
but it would make it so players could mostly walk through eachother

do note that it would be terrible for bullet collision too (most of them wouldn't get hit)

But players have there own hitboxes if you look in the mission editor.

Is there anyway to turn off the collision on the hitboxes?

I've seen this on a challenge server so it is totally possible. I don't recall if it was before v21 though.

Is there anyway to turn off the collision on the hitboxes?
Then you probably wouldn't be able to damage anyone

There's a way built into the engine (collision masks) and it's possible to modify with a dll injection, but for obvious reasons this cannot be distributed.

It is possible to disable player to player collisions. The DLL was made by Zeblote, you could probably ask him for it, or you can ask me, I can also send you the source code if you need to take a look at it.

Is there another way than injecting DLL into my server?

Is there another way than injecting DLL into my server?
No, as I've chatted you about it when you've PM'd me about it, the only way is injecting a dll because you can't modify the engine with torquescript. The dll basically modifies parts of the engine and registering the commands that torque does so they can be used in the game so you can disable/enable player collision by a console command.

There's a way built into the engine (collision masks) and it's possible to modify with a dll injection, but for obvious reasons this cannot be distributed.

Nonsense, here you go: https://dl.dropboxusercontent.com/u/143512782/Games/Blockland/PlayerCollisionToggle.zip (contains source and a build, browsers might not like the download because of the .dll)

You'd need to inject that in the server and it will create these new methods:

setPlayerCollisionEnabled(bool)
setVehicleCollisionEnabled(bool)

Note that after blockland is updated at some point, injecting this dll will crash the server. It's only for this exact version.
« Last Edit: September 19, 2015, 06:33:38 AM by Zeblote »

There's a way built into the engine (collision masks) and it's possible to modify with a dll injection, but for obvious reasons this cannot be distributed.
DLLs for the purpose of enhancing the game have never been an issue. They're essentially fancier add-ons.

How would I inject it into my game?


also that kinda looks a little bit scary.
Quote
CreateThread     GetCurrentProcess ‰K32GetModuleInformation dGetModuleHandleA  KERNEL32.dll  ²_stricmp  ïatoi  MSVCR120.dll  o__CppXcptFilter _amsg_exit  ƒfree  ¥_malloc_crt _initterm
_initterm_e P_crt_debugger_hook  ¬__crtUnhandledException «__crtTerminateProcess ”_lock _unlock ._calloc_crt ®__dllonexit :_onexit Œ__clean_type_info_names_internal  z_except_handler4_common !EncodePointer þ DecodePointer gIsDebuggerPresent mIsProcessorFeaturePresent -QueryPerformanceCounter
GetCurrentProcessId GetCurrentThreadId  ÖGetSystemTimeAsFileTime

also that kinda looks a little bit scary.

I'm not sure where you're reading that. If it's one of the source files try with another encoding.