11-07-2013, 21:22
(This post was last modified: 11-27-2013, 17:22 by TemeraireTeamp.)
Please delete this thread, I opened a new one with a better description of the problem.
[Delete] Properly switching teams
|
11-07-2013, 21:22
(This post was last modified: 11-27-2013, 17:22 by TemeraireTeamp.)
Please delete this thread, I opened a new one with a better description of the problem.
11-07-2013, 21:26
You should use OnPlayerKilled or OnNormalDeath for stuff like team-switching.
This is how I.W. did it for Infected.
Do not take life too seriously. You will never get out of it alive.
11-08-2013, 09:04
(This post was last modified: 11-08-2013, 09:36 by TemeraireTeamp.)
Thanks for the quick reaction DidUknowiPwn and SailorMoon, this website rocks!
DidUknowiPwn: Why not use the onNormalDeath function? It contains everything I need. (victim, attacker, lifeId) SailorMoon: I can do Code: victim [[level.axis]](); But it didn't work, other players still show up as if you are in the other team... Extra: The HUD of the player himself doesn't update either, at the left corner of the screen the 'old' team still shows up. I found this piece of code in the hud file: Code: level.hud["allies"] = spawnstruct();
11-08-2013, 11:13
I was using just 'player [[level.<team>]]();' and it was fine.
11-08-2013, 15:33
(11-08-2013, 15:33)TemeraireTeamp Wrote:(11-08-2013, 11:13)SailorMoon Wrote: I was using just 'player [[level.<team>]]();' and it was fine. Are you using iw4m, which is not allowed to discuss here? ( Also there are no difference, I was using steam one, aiw, etc..
11-08-2013, 19:35
It would be the same on steam version than on 4d1/aiw/...
11-13-2013, 17:12
(This post was last modified: 11-13-2013, 18:11 by TemeraireTeamp.)
Thanks for all the replies people!
But the switching still doesn't really work... I have been testing, testing and testing but still no luck. I have updated the main post I started this thread with and added the mod/code (attachment) I use for testing, so you guys and girls can test it out yourselves.
11-13-2013, 20:47
(11-13-2013, 17:12)TemeraireTeamp Wrote: Thanks for all the replies people! That's so strange. Are you using custom gametype? |
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
[Request] DELETE THIS ACCOUNT! | fakalavista | 3 | 3,580 |
10-23-2013, 07:45 Last Post: CJGreenLabel |
|
How to delete HUD elements on death? | camxxcore | 6 | 5,013 |
08-21-2013, 08:54 Last Post: Yamato |
|
delete please | Borealis | 2 | 2,207 |
04-13-2013, 14:11 Last Post: kokole |
|
[Release] MW2 MP TEAMS PACK | Sanya | 7 | 5,949 |
03-04-2013, 07:34 Last Post: Pozzuh |
|
delete | korsika | 7 | 4,735 |
01-11-2013, 15:00 Last Post: surtek |
|
HOW I CAN CHANGE TEAMS NAME? | s.j-rez | 12 | 10,291 |
01-03-2013, 19:49 Last Post: zuiopas1 |
|
[Request] Delete killtriggers? | Nekochan | 7 | 4,289 |
09-02-2012, 13:24 Last Post: Ich1994 |
|
plz delete | OzonE | 1 | 2,195 |
08-28-2012, 07:16 Last Post: JariZ |
|
3 Teams -_- | Superhot | 2 | 2,457 |
08-12-2012, 23:53 Last Post: Superhot |
|
DELETE | nik-mac | 2 | 2,454 |
07-11-2012, 21:47 Last Post: nik-mac |
Users browsing this thread: |
2 Guest(s) |