How do I add a shadow?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

How do I add a shadow?

Post by wishihadaname »

It may be minutia but it really annoys me when user made weapons have no shadows ingame. Is there a way to use the shadow for the sniper rifle as the shadow for another model of sniper rifle that I got off of GT? Or better yet is there a way to make a shadow for this new rifle without having to make a new msh?

*edit* Another issue that i have but don't want to start a seperate thread for: Whats with my ambushes?
I tried to set up ambushes but aparently my lua is having a problem with it. It doesn't seem to recognise the arguments i'm giving it.

Message Severity: 3
.\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to call global `SetTeamASEnemy' (a nil value)
stack traceback:
(none): in function `ScriptInit'

Though I followed the tutorial on ambushes to the letter. I'm not sure what the problem here is. Here is the section of my .lua that this message is refering to.

DroidAmbushTeam = 5
DAT = DroidAmbushTeam
CloneSurvivorTeam = 6
CST = CloneSurvivorTeam
*up near the top were i set up the teams*
dat = {
team = DAT,
units = 30,
reinforcements = -1,
soldier = { "cis_inf_rifleman",15, 25},
assault = { "cis_inf_rocketeer",1, 4},
},
cst = {
team = CST,
units = 20,
reinforcements = -1,
soldier = { "rep_inf_ep2_rifleman",5, 5},
officer = { "rep_inf_ep3_officer",15, 15},
}
}
SetTeamAsFriend(CST, REP)
SetTeamAsFriend(REP, CST)
SetTeamAsEnemy(CST, CIS)
SetTeamASEnemy(CIS, CST)
SetTeamAsFriend(DAT, CIS)
SetTeamAsFriend(CIS, DAT)
SetTeamAsEnemy(REP, DAT)
SetTeamAsEnemy(DAT, REP)
SetTeamName(CST, REP)
SetTeamName(DAT, CIS)
*area near the bottom were team details are added*
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How do I add a shadow?

Post by AQT »

User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Re: How do I add a shadow?

Post by wishihadaname »

I created an msh.option file for awp.msh and called it awp.msh.option, however when I munged and tested there was still no shadow. I assume there is something else I need to modify to get the awp.msh to use the awp.msh.option file though I couldn't find anything in the odf files to change.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: How do I add a shadow?

Post by DarthD.U.C.K. »

if the msh.option line doesnt work you have to edit the model with a modeling program in order to let it cause a shadow
Post Reply