Jump to content
Sign in to follow this  
ztz2019

Make the suicide weapon active at the same position

Recommended Posts

Fanatics must run and hit the target to detonate the suicide bomb, how to edit the function button that could make the suicide weapon active at the same position, no need the real target or ctrl + ground.

 

I once tried to add new ocl which could fireweapon to kill the fanatics and set the DeathType="EXPLODED", but I think it's too complex.

Share this post


Link to post
<SpecialPowerTemplate
        id="SpecialPower_72VirginsTime"
        ReloadTime="666s"
        TargetType="None"
        NameOfVoiceNameToUseAsInitiateIntendToDoVoice=""
        />
        

 

in the fanatic: (depending if you use a squad of suicice bombers or just a sing unit you might have to add this to the unit or squad and adjust the AIupdate to match that)

<SpecialPower
                id="ModuleTag_SpecialPower_72VirginsTime"
                SpecialPowerTemplate="SpecialPower_72VirginsTime"
                UpdateModuleStartsAttack="true"
                SetModelCondition="User_50"
                SetModelConditionTime="2s"
                />

<AI>
            <AIUpdate
                      id="ModuleTag_AI"
                      AutoAcquireEnemiesWhenIdle="YES"
                      AILuaEventsList="Fanatic_BombSelf_Functions">
                <UnitAITargetChooserData
                            SympathyRange="100.0"
                            IdleScanDelay="0.01s" />
            </AIUpdate>
        </AI>
             

scripteventlist.xml

 

 

<ModelConditionEvent Name="72Virgin_condtion">
            <Conditions>+USER_50</Conditions>
        </ModelConditionEvent>

<EventList Name="Fanatic_BombSelf_Functions" Inherit="BaseScriptFunctions">
        <EventHandler EventName="72Virgin_condtion"    ScriptFunctionName="kill" DebugSingleStep="false"/>
    </EventList>
 

try something like this...let me know if it works

Edited by Ravendark

Share this post


Link to post

Rather do a WeaponFireSpecialAbilityUpdate and just fire the NODFanaticBomb weapon.

Share this post


Link to post

 

<SpecialPowerTemplate
        id="SpecialPower_72VirginsTime"
        ReloadTime="666s"
        TargetType="None"
        NameOfVoiceNameToUseAsInitiateIntendToDoVoice=""
        />
        

 

in the fanatic: (depending if you use a squad of suicice bombers or just a sing unit you might have to add this to the unit or squad and adjust the AIupdate to match that)

<SpecialPower
                id="ModuleTag_SpecialPower_72VirginsTime"
                SpecialPowerTemplate="SpecialPower_72VirginsTime"
                UpdateModuleStartsAttack="true"
                SetModelCondition="User_50"
                SetModelConditionTime="2s"
                />

<AI>
            <AIUpdate
                      id="ModuleTag_AI"
                      AutoAcquireEnemiesWhenIdle="YES"
                      AILuaEventsList="Fanatic_BombSelf_Functions">
                <UnitAITargetChooserData
                            SympathyRange="100.0"
                            IdleScanDelay="0.01s" />
            </AIUpdate>
        </AI>
             

scripteventlist.xml

 

 

<ModelConditionEvent Name="72Virgin_condtion">
            <Conditions>+USER_50</Conditions>
        </ModelConditionEvent>

<EventList Name="Fanatic_BombSelf_Functions" Inherit="BaseScriptFunctions">
        <EventHandler EventName="72Virgin_condtion"    ScriptFunctionName="kill" DebugSingleStep="false"/>
    </EventList>
 

try something like this...let me know if it works

Ahhh..., you refused to believe and no willing to die, it's embarrassing me a lot. ^_^

Share this post


Link to post

Don't understand your answer, did it not work?

Oh, never mind. I didn't try it because my PC isn't beside me.

 

I just imitate the Jihadists opinion. ^_^

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×