Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Mötley on Oct 21, 2016, 03:26 AM

Title: End Team killing, [Discussion]
Post by: Mötley on Oct 21, 2016, 03:26 AM
Okay, I have always scripted Independent servers, No Team system.

I want to know is their a method to disable a player from killing their own team member?

Maybe theres a built in VCMP configuration setting I'm missing in the wiki?



There is obviously no function for getting a players action when shooting another player like

http://liberty-unleashed.co.uk/LUWiki/Squirrel/Client/Events/Player/onClientShot

To where I can cancel the damage. I would of done so If there were such function,.


If theres no way possible I will just remove my team system and focus on other stuff.

I have issues being able to test syncing two players at once on my OS.
Title: Re: End Team killing, [Discussion]
Post by: Thijn on Oct 21, 2016, 06:24 AM
Just spawn as the same team, you wouldn't be able to shoot your own team mates.
Title: Re: End Team killing, [Discussion]
Post by: vito on Oct 21, 2016, 06:55 AM
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/SetFriendlyFire
Title: Re: End Team killing, [Discussion]
Post by: Mötley on Oct 21, 2016, 11:29 AM
In my crappy operating system I cant really have two game windows open,

@Vito will that make it official with friendly fire? Can cars still kill them? Should I still run a kick?
Than you!
Title: Re: End Team killing, [Discussion]
Post by: EK.IceFlake on Oct 21, 2016, 11:56 AM
The most effective yet simplest way is to use .Team and have some server rules.
Title: Re: End Team killing, [Discussion]
Post by: Mötley on Oct 21, 2016, 12:06 PM
Yes, I have already thought about server rules. As well methods with .Team,.

I hope to see a 'onPlayerShoot( Someshit.... )' 'onPlayerCollide'  one day.

Team deathmatches are new to me.
 
MoneyGrub servers are simple. Cant wait to finish the simple build, Get to the moneygrub build then I will have a really good basic deathmatch, I can focus on rebuilding the server to be really easy to work with as well update, It wont stay just a DM :P
Title: Re: End Team killing, [Discussion]
Post by: vito on Oct 21, 2016, 03:39 PM
Quote from: Mötley on Oct 21, 2016, 11:29 AMCan cars still kill them?
Via cars - not, but using molotov is some cases - yes.
Title: Re: End Team killing, [Discussion]
Post by: KAKAN on Oct 21, 2016, 03:49 PM
Quote from: vito on Oct 21, 2016, 03:39 PM
Quote from: Mötley on Oct 21, 2016, 11:29 AMCan cars still kill them?
Via cars - not, but using molotov is some cases - yes.
Molotov can't, cars can( drive-by or just by driving over the player )
Title: Re: End Team killing, [Discussion]
Post by: vito on Oct 21, 2016, 04:45 PM
Quote from: KAKAN on Oct 21, 2016, 03:49 PM
Quote from: vito on Oct 21, 2016, 03:39 PM
Quote from: Mötley on Oct 21, 2016, 11:29 AMCan cars still kill them?
Via cars - not, but using molotov is some cases - yes.
Molotov can't, cars can( drive-by or just by driving over the player )
Wanna test molotov? IRC me
Title: Re: End Team killing, [Discussion]
Post by: Mötley on Oct 21, 2016, 04:53 PM
So I guess players jumping out of cars to kill their own teammate with there vehicle is possible etc etc.

I might look at the wiki to see if it would be possible for a function where as a teammate could walk through another teammate etc.

If not that should be added. That would be a simple fix. This would cover bullets etc. To anything really..
Title: Re: End Team killing, [Discussion]
Post by: vito on Oct 21, 2016, 06:03 PM
Quote from: Mötley on Oct 21, 2016, 04:53 PMIf not that should be added.
Good idea.
Title: Re: End Team killing, [Discussion]
Post by: Mötley on Oct 22, 2016, 12:27 PM
^ Nothing for it exist. If there were a player.Collide(bool) || Team.Collide(bool) then maybe.