resource/set/interaction_entity/fauna.inc
ニワトリ
{"chicken"
{on "damage" //ダメージを与えられると発生
{spawn "pero_hit_small"}
{start_sound "animal/chicken/cluck"}
}
{on "die" //死ぬと発生
{call "explosion"} //explosionを動的に呼び出す
}
{on "explosion"
{start_sound "animal/chicken/die"}
{spawn "pero_hit"}
{spawn "blood_small"}
{delete}
}
{on "avoid" //近づいて逃げようとしたときに発生
{if rand 0.3 //確立(30%)
{start_sound "animal/chicken/cluck"} //音声の再生
}
}
{on ground_hit //投擲物として投げたときに発生
{call "feather"}
}
{on contact
{if velocity 4
{call "feather"}
}
}
{on "feather"
{if not "feather"
{set "feather" 1}
{spawn "pero_hit_small"}
{start_sound "animal/chicken/cluck"}
{delay 0.2
{set "feather" 0}
}
}
}
}
犬、ウサギ、牛(エディタ未登場)
- データが記述されているがエディタで登場させることは出来ない。
- 牛の一部モデルと、それぞれの鳴き声などは収録されている。
{"dog"
{on spawn
{add_view "drops_water_small3" "on_water" "leg1"}
{add_view "drops_water_small3" "on_water" "leg2"}
{add_view "drops_water_small3" "on_water" "leg3"}
{add_view "drops_water_small3" "on_water" "leg4"}
}
{on "damage"
{spawn "bloodsparks_small"}
{if not dead
{start_sound "animal/dog/aw"}
}
}
{on "die"
{start_sound "animal/dog/die"}
{spawn "blood_small"}
}
{on "explosion"
{if rand 0.7 ("imp" args "head" "basis")}
{if rand 0.7 ("imp" args "head" "basis")}
{if rand 0.7 ("imp" args "hand1" "basis")}
{if rand 0.7 ("imp" args "hand2" "basis")}
{if not dead
{start_sound "animal/dog/die"}
}
{spawn "blood"}
{delete}
}
{on "avoid"
{if rand 0.3
{start_sound "animal/dog/aw"}
}
}
(define "terrain_fx_dog"
{on terrain_fx %0 enter
{view start "on_%1"}
}
{on terrain_fx %0 leave
{view pause "on_%1"}
}
)
("terrain_fx_dog" args "shallow_water" water)
("terrain_fx_dog" args "puddle" water)
}
{"rabbit"
{on "damage"
{spawn "bloodsparks_small"}
}
{on "die"
{spawn "rabbit_hit"}
{spawn "blood_small"}
{delete}
}
{on "explosion"
{if rand 0.7 ("imp" args "head" "basis")}
{if rand 0.7 ("imp" args "head" "basis")}
{spawn "rabbit_hit"}
{spawn "blood"}
; {spawn "blood_small"}
{delete}
}
}
{"cow"
{on "pierce_damage" overload
{health_damage_pierce
{effects "" "" "damage" "die" "explosion"}
}
}
{on "damage"
{spawn "bloodsparks_small"}
{if not dead
{start_sound "animal/cow/moo"}
}
}
{on "die"
{start_sound "animal/cow/moo"}
{spawn "blood_small"}
}
{on "explosion"
{if rand 0.7 ("imp" args "head" "basis")}
{if rand 0.7 ("imp" args "head" "basis")}
{if rand 0.7 ("imp" args "hand1" "basis")}
{if rand 0.7 ("imp" args "hand2" "basis")}
{if not dead
{start_sound "animal/cow/moo"}
}
{spawn "blood"}
{delete}
}
{on "avoid"
{if rand 0.3
{start_sound "animal/cow/moo"}
}
}
}
最終更新:2010年02月09日 20:45