collapse

Author Topic: Another propery problem  (Read 339 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

Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by ExShadow
[November 02, 2024, 04:54:41 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]


Rooftop Skyline(1.1 Only/AIGS) by Vegaz by LightFlare
[October 21, 2024, 12:13:37 PM]


Secluded Base(1.1 Only/AIGS) by Vegaz by LightFlare
[October 17, 2024, 01:21:06 PM]


Ultimate Balrog + stage by ELECTRO
[October 17, 2024, 05:40:31 AM]


Classic VS : Balrog by ELECTRO
[October 08, 2024, 04:35:53 PM]

* IMT Calendar

November 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

SimplePortal 2.3.5 © 2008-2012, SimplePortal