Home   Help Search Login Register  

Author Topic: Making THe Player Switch Sides  (Read 3425 times)

0 Members and 1 Guest are viewing this topic.

Offline TonyRanger

  • Members
  • *
  • I'm a llama!
Re:Making THe Player Switch Sides
« Reply #15 on: 22 Dec 2004, 08:54:09 »
you can do it like this,first join a high rank enemy,than
[player]join objnull,you can do this in 1 second,then nobody'll notice it ;D

Lean Bear

  • Guest
Re:Making THe Player Switch Sides
« Reply #16 on: 22 Dec 2004, 13:39:28 »
Thanks TriggerHappy! I made a few adjustments to your script cause atm it only works once and to switch to only one side.

So I made a few scripts (although, if they all work, I'll put them all in one and use labels to call them etc.) so that the player can repeatedly join different sides (and, since they all hate eachother, I don't need to change anything else).

I'll let you now if they worked.

Lean Bear

  • Guest
Re:Making THe Player Switch Sides
« Reply #17 on: 22 Dec 2004, 17:04:26 »
OK, after much testing and re-testing, I have discovered a major problem with the scripts; none of them work :P

The original one came up with a load of crap about the first line:

_guy = _this select 0

something like Error: Type Object, Expected Array

I couldn't tell if the rest of the script woked or not. I know it works in-game so I don't understand why it doesn't work in a simple script.

It should be so easy :'(

Mr.Pibb

  • Guest
Re:Making THe Player Switch Sides
« Reply #18 on: 22 Dec 2004, 18:05:33 »
Just to poke into the subject here, are you guys saying that there is a way one can make a player join an enemy side group and then he would be considered freindly to that groups side? Cause I tried that before and it never worked in-game, it did work at startup if I set him in the enemy group initially with the editor tho. In game(at some later point) it would add you(player) to the enemy group, but player was still enemy, in the same group! lol

 Anyhow, was just curious cause this was something I was tryin to do before and quit on it.

Hint to ya Lean Bear, im still learning myself, but if you put down what you have to a 'T', tends to help, then experienced people can identify the problem(changing sides, hmmmm, Triggerhappy, sound familiar? ;D )

Pibb
« Last Edit: 22 Dec 2004, 18:06:16 by Mr.Pibb »

Lean Bear

  • Guest
Re:Making THe Player Switch Sides
« Reply #19 on: 22 Dec 2004, 18:16:18 »
OK, so according to Mr. Pibb, it can't be done. (btw As I was using the same script that TriggerHappy posted but with minor adjustments (names etc.) I didn't think it was necessary to post it again)

But, there is another option (I think). If I were to put one unit from each side on the map in the editor then use these units to join and die with the player....

Would that work?

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Making THe Player Switch Sides
« Reply #20 on: 22 Dec 2004, 18:32:32 »
I refer you to reply #1

Mr.Pibb

  • Guest
Re:Making THe Player Switch Sides
« Reply #21 on: 23 Dec 2004, 00:40:59 »
umm no offense, but I didnt say anything couldnt be done, I was asking if a particular scenario here could be done, which I had failed at doing before.

 Sorry, didnt mean to poke into the topic here, was just curious if I had missed something in my testing. And shoulda looked more closely at the topic before saying to put up more info, my bad. Just used to myself putting up every detail I can when I post a problem, but its not always neccessary, so sorry bout that, back to modding :)

 :)

Pibb
« Last Edit: 23 Dec 2004, 00:45:07 by Mr.Pibb »

Lean Bear

  • Guest
Re:Making THe Player Switch Sides
« Reply #22 on: 23 Dec 2004, 12:34:35 »
ok, np Pibb.

I am beginning to see myself that this could be difficult to do, as so far there has been no porgress. :P

I'll add a different twist now: how about if there was a tolerence bar for each of the sides (I could quickly whip up some graphics).

I was thinking of using the rating thing (or something like that) so that when a sides tolerence drops below, say, 40% , then they will try to kill you. But above that then they don't try anything (maybe use setCaptive?).

Would this be possible?


Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Making THe Player Switch Sides
« Reply #23 on: 23 Dec 2004, 14:01:53 »
I love your tenacity

Lean Bear

  • Guest
Re:Making THe Player Switch Sides
« Reply #24 on: 23 Dec 2004, 14:21:52 »
I love your tenacity

Good, otherwise we'd never het anywhere ;D

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Making THe Player Switch Sides
« Reply #25 on: 23 Dec 2004, 18:22:43 »
in your mission, you're using all 4 sides correct?
if so , addrating and setcaptive won't do the trick
it will make him "allied" to the other 3 sides and against his original

Lean Bear

  • Guest
Re:Making THe Player Switch Sides
« Reply #26 on: 23 Dec 2004, 19:46:38 »
But surely if the player started shooting the "allied" sides, then he wouldn't be allied to him anymore?

Also, how does addRating work anyway?

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Making THe Player Switch Sides
« Reply #27 on: 23 Dec 2004, 20:43:06 »
basically addrating is used to change how much the players buddies like him
if his rating drops a lot, they're gonna try and kill him, then when it goes up, they like him a lot
the reason it won't work for 4 teams is that you can't be captive to just 1 side, its all your enemies, so the workaround if there were 2 side would be when he changes sides setcaptive him and addrating -10000000
so his enemy won't fight him and his friends will, so it can't work with 4 sides

Lean Bear

  • Guest
Re:Making THe Player Switch Sides
« Reply #28 on: 23 Dec 2004, 20:48:10 »
But if the players rating is, as you say, set to about -10000000, then all the sides will hate him, right? even. his. allies.

OK I see the problem.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Making THe Player Switch Sides
« Reply #29 on: 23 Dec 2004, 20:57:15 »
no no.
his "allies" wouldn't actually be allies
here is what was proposed
set his rating low and set him captive
lets say he is west
you take down his rating:other westies try to kill him
you set him captive: all his enemies don't care about him
so: he will be fighting only west and the other sides will basically ignore him, that is why it won't work with 4 sides
2, on the other hand, will work fine