Two skins at same time?


(Rampag3) #1

Hi everbody!

Well, I was checking this forum and saw great topics about Wolfenstein, but didn’t found what I was searching.

My ideia is simple, but i can’t find a solution, well, i was trying to run two skins at same time, for every class, like a elite, its quite possible to do it if you change the naked_(team)_(class).skin on the common folder, putting a different image file, but how ever, there are some problems on doing that:

First -
If the cover ops takes the suit of the enemy, it changes to the second skin. (the body on the floor)

Second -
It is necessary to use the command !pants every time.

Third -
I don’t know why the naked_skin don’t execute these commands:
md3_back, “models/players/temperate/axis/medic/acc/backpack.md3”
md3_hat, “models/players/temperate/axis/helmet.md3”
md3_rank, “models/players/temperate/common/rank_helmet.md3”

Basically is that. If some one knows an answer or know how to create a custom command like !pants to execute a third .skin, please tell me :smiley:

Thanks in advance.
Rampag3


(phisherman) #2

The naked.skin-files are used for dead players whose uniforms have been stolen (or in case of !pants which basically does the same thing but keeps the helmet and the backpack). The reason why your additional command lines are ignored is because a dead player does never wear a helmet (which is why we do not need an md3_rank either), as well as he doesnt wear a backpack. What you can do is modify the body, the legs and the hands, the rest will stay the same.


(Rampag3) #3

Yes, I’ve already tested what you said, but however, its not enough.

See some pictures:

Normal Medic
http://imageshack.us/photo/my-images/851/shot0000pb.jpg

Custom Medic
http://imageshack.us/photo/my-images/691/shot0000gf.jpg

Both at same time:
http://imageshack.us/photo/my-images/3/shot0001sl.jpg

As you can see, the legs are very weird, but the biggest problem is the necessity of using the command pants every time.

Do you know how to re-create the command !pants? We are running the Nitmod on the moment, so we can put some custom commands at the shrubbot.cfg. (But I don’t think that the command pants is to easy, i was checking the source of the game and i found some commands… really complicated)

By the way, do you know any way to detect a player and execute a command every time he spawn on the map?

Thanks in advance again,
Rampag3


(ailmanki) #4

I guess you want custom skins based on map?
http://www.splashdamage.com/forums/showthread.php?t=22457


(Rampag3) #5

Not exactly, i want to run two skins at same time, like a elite.

You can see on the third link on the last post, there are two different axis medic.

The goal of my project is for the admins on my clan to have different skins for each one, the problem I’m facing is the command to execute the .skin file.

Thanks once again,
Rampag3


(Soak) #6

Depending on what you want you could use lua scripting to automatically pants players depending on something like admin level or rank ingame every time they re-spawn as a medic.

There is also a remapshader command in lua, which according to wolfwiki can be sent using SendServerCommand to a single client - but during a quick test I had no luck getting it working.

If you describe when you want to spawn elites I would be happy to post some code for you.

Soak


(Rampag3) #7

Soak, I love you… hahahahahaha

I honestly don’t know how to create a LUA and I was hopping some one to show up and help me out :]

Well, our idea was to use the command to Admins (level 10) and donaters, but how ever, the donater is a quite complicate to explain.

Our donaters don’t win a specific level on your server, as you see, they win the elite uniform and also 3 sounds that only they can use, doing this, we don’t have the problem of a child getting some commands that can be a headache to us.

So, I was wondering if it was possible to create a lua to see the guid of the player and then pants him when he spawns on the map, I would be really in a debt with you! :]

well, i could explain better on MSN:
bfe_rampag3@hotmail.com

Also, there is something that i can’t miss!
As you can see on the ailmanki post, there was something very interesting, skins that change with the map. Its a really good idea, but when i checked the folder: models\players emperate\common, I saw that he changed the name of the naked.skins file and it was working! I was thinking, if he can change the name and still works, there must be a way to execute my own .skin file.

If its possible, the project would be 75% complete ^^
It would be only missing the command or the lua to execute this.

By the way, N!trox, if u read this post, I would like to say that our clan is very happy with the Nitmod. Also I would like to propose some ideas to you, if u like, add my msn so we can talk better :]

Thanks in advance,
Rampag3


(Rampag3) #8

Here is some pictures to show how far the project is going:









As you can see, its for all the classes.

(Sorry for the few pictures of the allies)

PS: The last two images of the fieldops legs, shows a little problem with the md3 of the naked leg that should be.

EDIT: you can see the flags Brazil vs Argentina, its our mod ^^
There is also a little problem, as you can see, the weapons doesn’t appears, idk why, i’ve tested on others mods and it was working normally.

Thanks once again,
Rampag3


(KeMoN) #9

Basically I like the ideas that higher classes have different uniforms than the lower classes. You already receive several improvements regarding your uniform with certain ranks like the flak-jacket for engineer skill or the armored helmet for soldier skill.

But the way you are currently planning to handle that will cause serious problems.
First of all every body a cvops steals the uniform from will appear in your elite uniform which lowers the speciality of your skin and also appears quite strange.

Secondly: When the elite guys are dying a cvops is unable to take their uniform because there actually isn’t a uniform left. That limits the usage of the cvops considerably and becomes really disturbing when the majority of the enemy team is wearing the elite “uniform”.

I would strongly recommend you to leave it to coders who could implement the features into the mod-code. Because the current way will seriously upset parts of the players.


(Rampag3) #10

Damn, I need to learn how to do some codes :confused:


(Soak) #11

Well I can fix the first problem easily and sort of fix the second one.

  1. Destroy the dead body so no one gets it!!
  2. Give an instant (or semi-delayed) disguise to any cv ops who kills an elite

There is a more fundamental issue here though - the guns. In Nitmod pansted player have their gun models removed as well, so any implementation of ‘elite’ skins will result in the players not appearing to have a gun.

Soak


(Rampag3) #12

Yes, there is a seriously problem, but I’ve tested on the version 2.0, there is already a version 2.1, so I don’t know if N!trox fixed this. I hope so. ^^

Well, both of your ideas are good Soak, but the disguise command I didn’t understand one thing, well, the player needs to have the command !disguise? If yes, I don’t think its a good idea, and also, can u set a time on pressing F on the body to stolen it? I mean, when you try to take it, it appears a blue progress bar, can you do it too?

Thanks for the support,
Rampag3


(Soak) #13

I run 2.1 - the problem is not fixed.

If you are still willing to go ahead with the project despite this, post here. All my solutions involve using lua - extra commands will not be given to players.


(Rampag3) #14

Sure I’m ^^

If this problem of the gun confuse our players, than we would just change to other mod.

Thanks,
Marcos.


(stealth6) #15

Nitmod has a forums:
http://www.etmods.net/nitmod/index.php

I also reported the problem you’re having with the guns here:
http://www.etmods.net/nitmod/viewtopic.php?id=360

Maybe they can fix it.


(Rampag3) #16

Thanks dude, lets wait to see if N!trox fix it, I hope so ^^


(Nitrox_) #17

I fixed the issue with weapons disapearing on naked players in N!tmod 2.2 :slight_smile:


(stealth6) #18

[QUOTE=N!trox*;337545]I fixed the issue with weapons disapearing on naked players in N!tmod 2.2 :slight_smile:

http://etmods.net/screenshots/nitmod/naked.jpg[/QUOTE]

2.2 is going to be soooooo awesome!


(Rampag3) #19

Thanks N!trox :smiley:

Your mod is one of the best! Keep up with the good work! ^^


(Soak) #20

Jesus - I owe you a huge apology for taking so long. I spent all week messing around with trajectory stuff in lua (invisible homing nades ftw).

So this is the most basic version possible: It !pantses any player above level ten or with a guid found in the list. Copy and paste the code below into a file called “skins.lua” in your server nitmod directory. Then set “lua_modules” in your server config to be “skins.lua”.

function et_InitGame(levelTime,randomSeed,restart)
et.RegisterModname(“skins.lua”)
end

guids = {
[“guid1”] = true,
[“guid3”] = true,
[“guid2”] = true,
nil
}

function et_ClientSpawn(player, revived)
local guid = et.Info_ValueForKey(et.trap_GetUserinfo(player), “cl_guid”)

–Player is a donater or players has level 10 or above
if et.G_shrubbot_level(player) >= 10 or guids[guid] then
et.trap_SendConsoleCommand(et.EXEC_APPEND, string.format("!pants “%s”, player))
end
end

To add a donater, simply replace the “guid1” , “guid2” strings with the required guid, and copy paste additional lines as necessary. We discussed extra features - and as mentioned there are issues with any solution. If you are happy with this so far we can figure out what to do next. I think the options are basically:

  1. Give a delayed disguise automatically to anyone who kills an elite
  2. Gib the dead elite body

Let me know if there any any issue - I can help you fix any issues with running the lua or adding new stuff.

Soak