If I wanted to make a pedestrian not say any thing when touched, would I take this,
and turn it into this
and then take out this from the code section?
------------------
What to NEVER say to a cop if he pulls you over.
Cop: Your eyes look red, have you been drinking?
You: Your eyes look glazed, have you been eating donuts?
Code:
symbols message created message killed message skill message touched message timer message damaged template powerup1=+DHealthPack local template powerup2=+DShield local template powerup3=+DBattery local flex rval local int bin local int count local int id local thing newThing local thing me local thing player local thing toucher local thing killer local sound hey=cm60155.wav sound leaves=cm60152.wav sound nothing=cm60149.wav sound mind=cm60142.wav sound whats=cm60146.wav int damage local int channel local sound manaSnd=ForceFieldHit01.WAV local
and turn it into this
Code:
symbols message created message killed message skill message timer message damaged template powerup1=+DHealthPack local template powerup2=+DShield local template powerup3=+DBattery local flex rval local int bin local int count local int id local thing newThing local thing me local thing player local thing toucher local thing killer local int damage local int channel local sound manaSnd=ForceFieldHit01.WAV local
and then take out this from the code section?
Code:
touched: me = GetSenderRef(); toucher = GetSourceRef(); player = GetLocalPlayerThing(); if (player != toucher) return; if (BitTest(AiGetMode(me), 0x800)) return; if (count == 1) return; rval = Rand(); if (GetThingUserData(me) == 2) { channel = PlaySoundThing(nothing, me, 1, -1, -1, 0x10080); SetThingUserData(me, GetThingUserData(me) + 1); count = 1; SetTimerEx(3.0, 0, 0.0, 0.0); return; } if (GetThingUserData(me) == 3) { channel = PlaySoundThing(mind, me, 1, -1, -1, 0x10080); count = 1; SetThingUserData(me, GetThingUserData(me) + 1); SetTimerEx(3.0, 0, 0.0, 0.0); return; } if (GetThingUserData(me) >= 4) { channel = PlaySoundThing(leaves, me, 1, -1, -1, 0x10080); count = 1; SetTimerEx(3.0, 0, 0.0, 0.0); return; } if (rval < 0.47) { channel = PlaySoundThing(hey, me, 1, -1, -1, 0x10080); SetThingUserData(me, GetThingUserData(me) + 1); SetTimerEx(3.0, 0, 0.0, 0.0); } else if (rval < 0.95) { channel = PlaySoundThing(whats, me, 1, -1, -1, 0x10080); SetThingUserData(me, GetThingUserData(me) + 1); SetTimerEx(3.0, 0, 0.0, 0.0); } count = 1; return;
------------------
What to NEVER say to a cop if he pulls you over.
Cop: Your eyes look red, have you been drinking?
You: Your eyes look glazed, have you been eating donuts?