Please Support RGN
Donate Today!!

 


 

Go Back   Raiders Game Net > RGN Map/Mod Center > CoD Series Mods Discussion

CoD Series Mods Discussion Have mod? Want to share a Mod or info?

Reply
 
Thread Tools Display Modes

character model
  #1  
Old 02-03-2010, 02:47 PM
irishstorm irishstorm is offline
CPL
 
Join Date: Mar 2009
Location: Enniscorthy, IE
Age: 20
Posts: 59
Rep Power: 18
irishstorm is on a distinguished road
Default character model

i'm adding a new model to waw and i can see it in asset viewer and it looks fine but when i try add it to the game it goes invisible i have tried changing the character scripts and i made my own script but the model still goes invisible
anyone got any idea what i'm doing wrong>?
Code:
init()
{
   thread onPlayerConnect();
   preCacheModel("custommodel");
}

onPlayerConnect()
{
   for(;;)
   {
      level waittill("connected", player);
      player thread onPlayerSpawned();
   }
}

onPlayerSpawned()
{
   for(;;)
   {
      self waittill("spawned_player", player);
      self setModel("custommodel");      
   }
}
my csv


Code:
xmodel,custommodel
rawfile,character/char_usa_raider_player_lmg.gsc
material,visor
material,custommodel
character script
Code:
main()
{
    self setModel("custommodel");

}

precache()
{
    precacheModel("custommodel");
}
__________________
Glaine ár gcroí Neart ár ngéag
Agus beart de réir ár mbriathar

ModByte.se
Reply With Quote
 

  #2  
Old 02-03-2010, 03:26 PM
irishstorm irishstorm is offline
CPL
 
Join Date: Mar 2009
Location: Enniscorthy, IE
Age: 20
Posts: 59
Rep Power: 18
irishstorm is on a distinguished road
Default

got it fixed i was using the wrong model lol i'm such an idiot wasted the last 4hours
__________________
Glaine ár gcroí Neart ár ngéag
Agus beart de réir ár mbriathar

ModByte.se
Reply With Quote
 
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:32 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Content Copyright © RGN, Raiders Game Net