grrr... suddenly Im having all these cog problems, but if someone could solve this quickie it would be great:
I am having many surfaces that will damage the player when touched, and they are all the same mat. So, instead of using the 00_damagewall.cog and inputing EVERY SINGLE surface, how about something where if you touch a certain mat you get hurt?
Sorta like combining 00_damagewall and 00_matanim. Like this except it doesnt function:
------------------
nil nip nada zip zero naught lip zil
I am having many surfaces that will damage the player when touched, and they are all the same mat. So, instead of using the 00_damagewall.cog and inputing EVERY SINGLE surface, how about something where if you touch a certain mat you get hurt?
Sorta like combining 00_damagewall and 00_matanim. Like this except it doesnt function:
Code:
# Jedi Knight cog Script # # Whenever a player touches a material, he gets hurt # # [F-Body] # # This cog is not made or endorsed by LucasArts Entertainment Co. # ======================================================================================== symbols message touched material damagemat desc=damaging_material flex maxDamage=10.0 flex minDamage=5.0 int victim=-1 local flex damage=0 local flex garbage=0 local end # ======================================================================================== code touched: If(GetSurfaceMat(GetSenderRef())!=damagemat) return; victim = GetSourceRef(); damage = (rand() * (maxDamage - minDamage)) + minDamage; garbage = DamageThing(victim, damage, 0x2, victim); // self-inflicted damage return; end
------------------
nil nip nada zip zero naught lip zil
This is retarded, and I mean drooling at the mouth