Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Delete] Properly switching teams
#1
Question 
Please delete this thread, I opened a new one with a better description of the problem.
Reply

#2
You should use OnPlayerKilled or OnNormalDeath for stuff like team-switching.
This is how I.W. did it for Infected.

[Image: 24d.png]
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#3
(11-07-2013, 21:26)DidUknowiPwn Wrote: You should use OnPlayerKilled or OnNormalDeath for stuff like team-switching.
This is how I.W. did it for Infected.

[Image: 24d.png]

*shows his "epic" gsc editor instead of copying code here*

Try
*player* [[level.axis]](); ( or level.allies )
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
Bug 
Thanks for the quick reaction DidUknowiPwn and SailorMoon, this website rocks!
Tongue

DidUknowiPwn: Why not use the onNormalDeath function? It contains everything I need. (victim, attacker, lifeId)
SailorMoon: I can do
Code:
victim [[level.axis]]();
then right?

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();
Could that be the hud of the player? So if I change that from "allies" to "axis" would that at least update their own HUD?
Reply

#5
I was using just 'player [[level.<team>]]();' and it was fine.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#6
(11-08-2013, 11:13)SailorMoon Wrote: I was using just 'player [[level.<team>]]();' and it was fine.

Are you using the original version of MW2?
Reply

#7
(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 the original version of MW2?

Are you using iw4m, which is not allowed to discuss here? (
Also there are no difference, I was using steam one, aiw, etc..
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#8
It would be the same on steam version than on 4d1/aiw/... Smile
Reply

#9
Shocked 
Thanks for all the replies people! Big Grin
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.
Reply

#10
(11-13-2013, 17:12)TemeraireTeamp Wrote: Thanks for all the replies people! Big Grin
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.

That's so strange. Are you using custom gametype?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply



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
Brick 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
Lightbulb [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

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.