collapse

Author Topic: Another propery problem  (Read 325 times)

0 Members and 1 Guest are viewing this topic.

Offline Kev The Galaxybender

  • Infinity Faithful
  • ****
  • Posts: 973
  • Country: United States us
  • Last Login:November 29, 2022, 03:38:40 PM
    • Email
Another propery problem
« on: October 03, 2008, 06:00:12 PM »
Kai Sensei Ken can throw this really slow moving fireball and he can't be hit by it as well as his opponent. How can I make it to where only the opponent can be hit?? Here is the code I found........


; HadouKen especial
[Statedef 1008]
type    = S
movetype= A
physics = S
juggle  = 5
poweradd= 0
ctrl = 0
velset = 0,0
anim = 1000
sprpriority = 2


[State 1008, 1]
type = Helper
trigger1 = AnimElemTime(5) = 1
helpertype = normal
name = "Hadou-Ken"
ID = 1008
pos = 67, -70
postype = p1
stateno = 1009
ownpal = 1


[State 1008,1 ]
type   = PlaySnd
trigger1   = animelem = 4
value = 2, 5
channel  = -1

[State 1008, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------
;=====================================================================

[Statedef 1009]
type    = A
movetype= A
anim = 1008
sprpriority = 3
poweradd= -100

[state 1009, 1]
type = VelSet
trigger1 = Time = 0
x = .2

[State 1009, Unblockable]
type = AssertSpecial
trigger1 = stateno=1009
flag = UnGuardable

[State 1009, 2]
type = HitDef
trigger1 = Time = 40
attr = A, SP                     
damage = 200,20
animtype = hard                 
guardflag = MA                 
hitflag = MAF                 
priority = 7 , Hit               
sprpriority = 3
projcancelanim = 8092
pausetime = 3, 3
guard.sparkno = S8200               
sparkno = S8099
sparkxy = 0, 0             
hitsound = S1,25                 
guardsound = S1,15               
ground.type = High               
ground.slidetime = 20
ground.hittime  = 25             
ground.velocity = -5,-9
guard.velocity = -20
airguard.velocity = -10
air.type = High                 
air.velocity = -4, -8         
air.hittime = 25
fall = 1
air.fall = 1
palfx.time = 31
palfx.add = 160,240,140
palfx.mul = 80,120,220
palfx.sinadd = 80, 80, 80, 5
affectteam=B
envshake.time=11
envshake.freq=60
envshake.ampl=5
ignorehitpause = 1

[State 1009, 3]
type = ChangeState
trigger1 = Movehit
trigger2 = moveguarded
value=1011

;---------------------------------------------------------------------
;=====================================================================

[Statedef 1011]
type = A
movetype = I
ctrl = 0
anim = 8099
velset = 0, 0
sprpriority = 2


[State 1008, 2]
type = DestroySelf
triggerall = Time >=3
trigger1 = P2MoveType != H
trigger2 = NumTarget > 0
trigger2 = target(0), Time > 1

thanks in advance



Offline REDHOT

  • Global Moderator (out of the office)
  • *****
  • Posts: 421
  • Last Login:August 25, 2018, 02:31:38 PM
    • Mugen Latino
Re: Another propery problem
« Reply #1 on: October 03, 2008, 06:55:56 PM »
I don´t undestand very well your problem...
the firewall not hit the enemy??

Offline El Chupacabras

  • Forum Member
  • ***
  • Posts: 315
  • Last Login:June 11, 2010, 04:34:36 PM
Re: Another propery problem
« Reply #2 on: October 03, 2008, 09:11:28 PM »
...
[State 1009, 2]
type = HitDef
trigger1 = Time = 40
attr = A, SP                     
damage = 200,20
animtype = hard                 
guardflag = MA                 
hitflag = MAF                 
priority = 7 , Hit               
sprpriority = 3
projcancelanim = 8092
pausetime = 3, 3
guard.sparkno = S8200               
sparkno = S8099
sparkxy = 0, 0             
hitsound = S1,25                 
guardsound = S1,15               
ground.type = High               
ground.slidetime = 20
ground.hittime  = 25             
ground.velocity = -5,-9
guard.velocity = -20
airguard.velocity = -10
air.type = High                 
air.velocity = -4, -8         
air.hittime = 25
fall = 1
air.fall = 1
palfx.time = 31
palfx.add = 160,240,140
palfx.mul = 80,120,220
palfx.sinadd = 80, 80, 80, 5
affectteam=B
envshake.time=11
envshake.freq=60
envshake.ampl=5
ignorehitpause = 1
...

Docs -

Quote
Optional parameters:

  affectteam = team_type (string)

    team_type specifies which team's players can be hit by this

    HitDef. Use B for both teams (all players), E for enemy team

    (opponents), or F for friendly team (your own team). The default

    is E.

Offline Kev The Galaxybender

  • Infinity Faithful
  • ****
  • Posts: 973
  • Country: United States us
  • Last Login:November 29, 2022, 03:38:40 PM
    • Email
Re: Another propery problem
« Reply #3 on: October 03, 2008, 10:07:44 PM »
I don´t undestand very well your problem...
the firewall not hit the enemy??

lol, sorry RedHot, that was my mistake, I worded that all wrong. What I meant was he can throw a fireball, and while it's moving he can be hit by it as well as the enemy. thanks for responding though

and thanks El Chupacabras

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

Ballroom Hallway (1.1 Only/AIGS) by Vegaz by LightFlare
[Today at 11:53:48 AM]


Neon Light Force Demo by kyoman
[May 08, 2024, 12:50:05 PM]


D2TD VS Showcase Thread by D2TD
[May 05, 2024, 10:08:50 AM]


Classic VS : Athena by ELECTRO
[May 02, 2024, 09:44:33 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[April 21, 2024, 12:09:20 PM]


Ultimate E. Honda + stage by ELECTRO
[April 18, 2024, 09:47:24 PM]


Sunset Beach (1.1 Only/AIGS) by Vegaz by LightFlare
[April 16, 2024, 06:55:00 PM]


Wonder Twins 2.0 by brucewayne74, Shining and Skhsato123 by brucewayne74
[April 05, 2024, 06:07:48 PM]


X-Men Training Room (Bright & Dark) Stage 1.1 & 1.0 by MatreroG
[April 05, 2024, 10:55:29 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[April 01, 2024, 11:03:03 PM]

* IMT Calendar

May 2024
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 [9] 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal