SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Snake on December 17, 2012, 06:37:39 PM

Title: [HELP] Singleplayer modification
Post by: Snake on December 17, 2012, 06:37:39 PM
I have not learned to edit singleplayer game setting so could someone make a (mission.lvl ?) that:

Turns off radar
Allows Team Damage

Thanks!
Title: Re: [HELP] Singleplayer modification
Post by: Phobos on December 17, 2012, 06:39:33 PM
Quote from: SnowFlakeSnake on December 17, 2012, 06:37:39 PM
I have not learned to edit singleplayer game setting so could someone make a (mission.lvl ?) that:

Turns off radar
Allows Team Damage

Thanks!

Mission.lvl controls neither of those settings.
Title: Re: [HELP] Singleplayer modification
Post by: Led on December 17, 2012, 06:47:43 PM
There is a sensor jam "bonus" but from what I understand, only one team can have it.  It can be called in the mission file.
Title: Re: [HELP] Singleplayer modification
Post by: Snake on December 17, 2012, 06:50:23 PM
Quote from: Phobos on December 17, 2012, 06:39:33 PM
Mission.lvl controls neither of those settings.

I know but I don't know what file does.

Quote from: Buckler on December 17, 2012, 06:47:43 PM
There is a sensor jam "bonus" but from what I understand, only one team can have it.  It can be called in the mission file.

Alright, that would work since only one team needs it. What line calls this bonus?

Is there no way to turn on TD?
Title: Re: [HELP] Singleplayer modification
Post by: Phobos on December 17, 2012, 06:58:12 PM
Sensor jam hasn't worked from what I've tested in multiplayer but it might in single player.
Radar is always enabled in the instant action you can't change that because it's hard-coded.

I also think that team damage toggle is exe scripted.

You can force team lock in the ifs_sp.lua for instant action by adding this:
ScriptCB_SetCanSwitchSides(nil)

Title: Re: [HELP] Singleplayer modification
Post by: Led on December 17, 2012, 06:58:31 PM
Try one of these in the lua:

ActivateBonus(ALL, "SNEAK_ATTACK")
ActivateBonus(IMP, "SNEAK_ATTACK")

with the appropriate team.


Not sure where this goes but maybe try this, but who knows what the usage of this is:
ScriptCB_SetFriendlyFire 

see this post for more details and list:
http://www.swbfgamers.com/index.php?topic=4207.0





Title: Re: [HELP] Singleplayer modification
Post by: Phobos on December 17, 2012, 07:01:06 PM
Quote from: Buckler on December 17, 2012, 06:58:31 PM
ScriptCB_SetFriendlyFire 

You can try
ScriptCB_SetFriendlyFire(nil)

in the mission LUA and it might disable it, or

ScriptCB_SetFriendlyFire(1)

if you want it enabled. I think this might work for SP, but the EXE will override it for multiplayer depending on what you select for server options.
Title: Re: [HELP] Singleplayer modification
Post by: Snake on December 17, 2012, 07:02:32 PM
Where in the .lua do I put it?
Title: Re: [HELP] Singleplayer modification
Post by: Led on December 17, 2012, 07:04:33 PM
anywhere after the teams are assigned as 1 or 2
Title: Re: [HELP] Singleplayer modification
Post by: Snake on December 17, 2012, 07:10:36 PM
Both caused crash  :confused:
Title: Re: [HELP] Singleplayer modification
Post by: Phobos on December 17, 2012, 07:12:08 PM
Quote from: SnowFlakeSnake on December 17, 2012, 07:10:36 PM
Both caused crash  :confused:
does sptest say anything in the log?
Title: Re: [HELP] Singleplayer modification
Post by: Snake on December 18, 2012, 02:48:19 PM
Nothing o.O

[spoiler]Opened logfile BFront.log  2012-12-18 1645

Message Severity: 2
.\movie\RedMovie.cpp(467)
Segment 0x889c5d45 does not exist in movie 0xb86e8e36

Message Severity: 2
.\source\Weapon.cpp(1774)
Weapon "imp_weap_inf_bow" missing fire point "hp_fire"

Message Severity: 2
.\source\Weapon.cpp(1774)
Weapon "imp_weap_inf_fusioncutter" missing fire point "hp_fire"

Message Severity: 3
.\graphics\pc\shaders\pcTerrainShader.cpp(176)
pcTerrainShader: detail texture expects L8 format!

Message Severity: 3
.\source\CommandPost.cpp(409)
Command Post missing capture region "CP1Capture"

Message Severity: 3
.\source\CommandPost.cpp(414)
Command Post missing control region "CP1Control"

Message Severity: 2
.\source\CommandPost.cpp(392)
Label "level.hunger2.CP3Label" not localized

Message Severity: 3
.\source\CommandPost.cpp(414)
Command Post missing control region "CP4Control"

Message Severity: 3
.\source\CommandPost.cpp(409)
Command Post missing capture region "CP2Capture"

Message Severity: 3
.\source\CommandPost.cpp(414)
Command Post missing control region "CP2Control"

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 2
.\source\Godray.cpp(284)
GodrayManager: Exceeded maximum number of godrays (300)

Message Severity: 3
.\source\CommandPost.cpp(409)
Command Post missing capture region "CP1Capture"

Message Severity: 3
.\source\CommandPost.cpp(414)
Command Post missing control region "CP1Control"[/spoiler]
EhPortal 1.34 © 2024, WebDev