Three questions about weapons and custom skydomes

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
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Three questions about weapons and custom skydomes

Post by THEWULFMAN »

I have three very important questions.
I would greatly appreiciate any help you could give me.
They are in there own hiiden/spoiler brackects to save space

1.
Hidden/Spoiler:
1. How did Mav do custom Skydomes and fx stuff for the stock maps, like,in his DT mods, I understand how its done when making new maps, but I only have a vague idea how it might be done for stock maps. So can someone please tell me how you did it, :yes:
2.
Hidden/Spoiler:
2. Can someone help me with some lua code? I came up with a awesome idea, what if we could create a lua script command, so that when hit with a sepcific force power, the unit would switch sides. I already know how most of the code would work, I think, the question marks are where I need you help.If we can get this to work,it could be like the force mind trick of the new Force Unleased 2 game.
Here is the code 8)

-- ADD THIS IN THE ScriptPostLoad SECTION

OnObjectDamage(
function(object, damager)
if GetObjectHealth(object) > 900000 then return end
if GetObjectLastHitWeaponClass(object) == "com_weap_inf_mind_trick" then
???????????? end
end
)
--END
------------------

--ADD THIS AFTER THE ScriptPostLoad SECTION
function ???????For(object, timercount)
--???????
print("--??????")
health = GetObjectHealth(object)
SetProperty(object, "CurHealth", 1000000)
DeactivateObject(object)
-- Wait for timercount
print("-- Wait for timercount")
CreateTimer("timer" .. count)
SetTimerValue("timer" .. count, timercount)
StartTimer("timer" .. count)
OnTimerElapse(
function(timer)
--????????
print("--?????????")
ActivateObject(object)
SetProperty(object, "CurHealth", (GetObjectHealth(object) - 1000000) + health)
count = count + 1
end,
"timer" .. count
)
end
--END
3.
Hidden/Spoiler:
3.Haywire dets. I used the base class "haywire, but it caused a CTD, with an error saying that it couldnt find the base class "haywire". Any ideas? :?
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: three very important question, help greatly appreciated

Post by skelltor »

for three its the ord class needs to be haywire and in the ord odf add DisableTime = " " for how long its to be disabled
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: three very important question, help greatly appreciated

Post by THEWULFMAN »

skelltor wrote:for three its the ord class needs to be haywire and in the ord odf add DisableTime = " " for how long its to be disabled
I did both already.
Post Reply