Page 1 of 1

How do I add a shadow?

Posted: Sun Jan 24, 2010 10:54 pm
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*

Re: How do I add a shadow?

Posted: Sun Jan 24, 2010 11:08 pm
by AQT

Re: How do I add a shadow?

Posted: Mon Jan 25, 2010 10:52 pm
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.

Re: How do I add a shadow?

Posted: Tue Jan 26, 2010 10:06 am
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