Results 1 to 3 of 3

Thread: Team look the model as...

  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    Team look the model as...

    Hello Guys!
    Maybe you know it, if you are in the team allies, you will see the model as a panzer.
    And if you are in the team axis, you will see the model as a car.
    Is it possible to make it in cod2? The model is placed as example (131,372,0), but the other teams say it as another model.

  2. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Short: yes, possible



    A bit longer:

    Code:
    function gamelogic
    	while game is running
    		game waittill player joined team
    		updateVisibility
    	endloop
    endfunction
    
    function updateVisibility
    	model1 hide
    	model2 hide
    
    	foreach player in players
    		if player team == team1
    			model1 showTo( player )
    		else
    			model2 showTo( player )
    		endif
    	endloop
    endfunction
    showTo() shows the model to the inputplayer

  3. The Following User Says Thank You to serthy For This Useful Post:

    Loveboy (6th October 2013)

  4. #3
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    this is nice! thank you serthy!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •