Flags


(zeus) #1

Is it possible to change the USA flag for a Europe flag in allied team???
I want a map realistic with history, not a yanki film


(zl1corvette) #2

Its possible I think…

use a .skin file to point to your new textures,


Cylinder01, "models/multiplayer/flagpole/my_flagpole.tga"
american flag new_MESHBAKE, "models/multiplayer/flagpole/my_american.tga"
nazi Flag, "models/multiplayer/flagpole/my_german.tga"

just point the skin key of you pole to that


(Chruker) #3

Just a note about using the skin system: To have the game using it, your misc_gamemodel must have either a spawnflag set or one of the scriptname or targetname keys set.


(zeus) #4

I dont understand- What is a script?
Should I place a team-wolf-checkpoint?
“model” model to use (will use same animations as flagpole however)
Is that model a tga file?


(KingJackaL) #5

…or just make a skin-pack replacing the textures :stuck_out_tongue:

I did the same, replaced the US flags with NZ flags:

http://www.l3.net.nz/ET/NZETv2.pk3

That’s only 340k. If you want to replace the flags on the uniforms, that’ll bloat out to several MB’s, which is why I didn’t bother.


(Chruker) #6

My reply was just an extension of zl1corvette’s answer about the skin system.


(zeus) #7

KingJackal … where is the .bsp in ur map??? there isnt any maps directory
Id like to see ur map with NZ flag


(nUllSkillZ) #8

There isn’t a bsp in his file.
It’s a modification.
If you put this in your etmain directory and create a server you will see different flags.


(zeus) #9

I did that and didnt seem to have any effect. Flags dont change.
There is a models/multiplayer/flagpole/american.jpg in pak0.pk3 and in NZETv2.pk3, the same path. Why would the game select the flag in NZET and not the one in pak0.pk3.
Pls, help me, Im very confused


(nUllSkillZ) #10

I know why this hasn’t worked.
Rename the NZETv2.pk3 to something like z_NZETv2.pk3.
The pk3-files are read in alphabetical order.
So a later one overrides the former ones.


(zeus) #11

That worked null. But it changes the US flag in all maps. And I only want to change the flag in my map. I want to place the skin in the pk3 with my .bsp.
I think it can be done using this key:

“model” model to use (will use same animations as flagpole however)

of the team_ wolf_objective entity.
But I dont know what have I to enter.


(nUllSkillZ) #12

Take a look at the post of zl1corvette (the 2nd post):

Its possible I think…

use a .skin file to point to your new textures,


Cylinder01, "models/multiplayer/flagpole/my_flagpole.tga"
american flag new_MESHBAKE, "models/multiplayer/flagpole/my_american.tga"
nazi Flag, "models/multiplayer/flagpole/my_german.tga"


just point the skin key of you pole to that

(zeus) #13

So, as u say, it should work if I:
1- Place my skin files in, eg: models/multiplayer/flagpole2. Ill name my skin for allied flag as: american.jpg
2- Enter this key/value pair in the team-wolf-checkpoint:
key skin
value models/multiplayer/flagpole2

Is that true??? I cant test it now


(zeus) #14

:frowning:
Im not able to get my custom allied flag to work
I followed these steps:
1- I copy files of models/multiplayer/flagpole (from KingJackal´s pk3) to models/multiplayer/flagpole2
2- I placed my custom jpg instead of american.jpg.
3- I create a TeamWolfCheckpoint entity in my map
4- I test in that entity all these 4 key/value pairs:
skin models\multiplayer\flagpole2\flagpole.md3
skin models\multiplayer\flagpole2
model models\multiplayer\flagpole2\flagpole.md3
model models\multiplayer\flagpole2

with skin key, nothing happens. With model key, no flag is showed

Any help?


(zl1corvette) #15

ya, it probably won’t work the way I said, I don’t think the team_wolf_checkpoint can use a skin file, just remap the shaders instead from the script


testflag
{
spawn
{
wait 200
remapshader models/multiplayer/flagpole/american textures/flagskin/american
remapshader models/multiplayer/flagpole/german textures/flagskin/german
remapshaderflush
}
}


(zeus) #16

Im not able to get it work
I placed my custom german.jpg in models/multiplayer/flagpole/german textures/flagskin/german/
and my custom american.jpg in models/multiplayer/flagpole/american textures/flagskin/american/
and no flag is showed in the game.
Pls, if anyone got a custom-skinned flag in a example map, pls post it.
I need to create custom flags for my map


(zl1corvette) #17

I just tried it, and it works.

here’s how to do it
1)
make a map
needs a team_wolf_checkpoint key/value scriptname/testflag
2)
make a file called mymapname.script in your map directory with the code above
3)
make a mymapname.shader file in the scripts directory with code like this


textures/flagskin/german
{
	cull disable
//	deformVertexes wave 194 sin 0 3 0 .4
	{
		map textures/flagskin/german.tga
		rgbGen lightingDiffuse
	}
}
textures/flagskin/american
{
	cull disable
//	deformVertexes wave 194 sin 0 3 0 .4
	{
		map textures/flagskin/american.tga
		rgbGen lightingDiffuse
	}
}

  1. put your custom textures german.jpg and american.jpg in the textures/flagskin directory

(Chruker) #18

ahrm, won’t this replace the flags in all the map? Saying this I assume the default models use the same texture names.

I regards to the .skin system. I checked the source code and it doesn’t seem that the team_wolf_checkpoint supports the skin system.


(zl1corvette) #19

Is it possible to change the USA flag for a Europe flag in allied team???

I think he does want to change all the flags in his map. I guess if you wanted flags with different textures you would need different models pointing to the different textures.


(Chruker) #20

No, I mean, doesn’t it change the flags in all existing maps?

The Battery Vara map did this, just with some lights. The shader in vara was broken, which caused previously working lights in other maps to suddenly be missing a texture.