Admin model

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Sanya
CJ Wannabe
CJ Wannabe
Posts: 17
Joined: March 24th, 2010, 12:06 pm
Location: Russia
Contact:

Admin model

Post by Sanya » April 8th, 2010, 7:13 am

Hello, I want use admin model in jump mod, but... I try many way for it, but havent admin model, Some1 can help me?

Script:


AdminModel()
{
if(isDefined(self.cj["status"] && self getGuid() != "guid") && self.cj["status"]&& self getGuid() != "guid")
{
if((game["allies"] == "marines") || (game["axis"] == "marines")) // Map with Marines-Models
{
if(game["allies_soldiertype"] == "desert")
{
self detachAll();
self setModel("body_mp_usmc_assault");
self attach("head_mp_usmc_tactical_mich", "", true);
self setViewmodel("viewmodel_base_viewhands");
self.voice = "american";
}
else
{
self detachAll();
self setModel("body_mp_usmc_woodland_assault");
self attach("head_mp_usmc_tactical_mich", "", true);
self setViewmodel("viewhands_sas_woodland");
self.voice = "british";
}
}
else if((game["allies"] == "sas") || (game["axis"] == "sas")) // Map with SAS-Models
{
if(game["allies_soldiertype"] == "urban")
{
self detachAll();
self setModel("body_mp_sas_urban_assault");
self setViewmodel("viewhands_black_kit");
self.voice = "british";
}
else
{
self detachAll();
self setModel("body_mp_usmc_woodland_assault");
self attach("head_mp_usmc_tactical_mich", "", true);
self setViewmodel("viewhands_sas_woodland");
self.voice = "british";
}
}
else
{

}
}
else
{

}
}

I dont know why Pedsdude said that I should post it there x)

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Admin model

Post by Drofder2004 » April 8th, 2010, 9:00 pm

Firstly, are you adding this to your own jump mod or are you adding this to a map file or something?

Secondly, I have yet to touch the model functions. I can only help with errors.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Sanya
CJ Wannabe
CJ Wannabe
Posts: 17
Joined: March 24th, 2010, 12:06 pm
Location: Russia
Contact:

Re: Admin model

Post by Sanya » April 9th, 2010, 4:28 am

Jump mod, I just havent model.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests