addHook("ThinkFrame", do //Adds a ThinkFrame hook.
for player in players.iterate //Gets the local player
if (player.mo and player.mo.skin == "skinname") //Change "skinname" to the character's skin you want to use.
and (player.pflags & PF_NIGHTSMODE) //Do not intefere with nights, it may crash the game.
if not player.mo.footsteptimer //If the variable "footsteptimer" doesn't exist,
player.mo.footsteptimer = 0 //Create the variable.
end // End this block
player.mo.footsteptimer = $1 + 1 //Add 1 to footsteptimer every tick. "$1" gets the variable's current value.
if (player.panic == PA_RUN) //Change to PA_WALK if you want it to happen when walking.
and player.mo.footsteptimer > TICRATE/2 //If half a second has passed since the last step sound,
S_StartSound(player.mo, sfx_soundname) //Replace "soundname" with whatever the sound name is, removing "DS" from the beginning.
player.mo.footsteptimer = 0 //Reset the foostep timer.
end //End this block.
end //End the player and nightsmode check block
end //End the player iteration
end) //Finish the hook.
addHook("ThinkFrame", do //Adds a ThinkFrame hook.
for player in players.iterate //Gets the local player
if (player.mo and player.mo.skin == "Gargoyle") //Change "skinname" to the character's skin you want to use.
and (player.pflags & PF_NIGHTSMODE) //Do not intefere with nights, it may crash the game.
if not player.mo.footsteptimer //If the variable "footsteptimer" doesn't exist,
player.mo.footsteptimer = 0 //Create the variable.
end // End this block
player.mo.footsteptimer = $1 + 1 //Add 1 to footsteptimer every tick. "$1" gets the variable's current value.
if (player.panic == PA_RUN) //Change to PA_WALK if you want it to happen when walking.
and player.mo.footsteptimer > TICRATE/2 //If half a second has passed since the last step sound,
S_StartSound(player.mo, sfx_STATU2) //Replace "soundname" with whatever the sound name is, removing "DS" from the beginning.
player.mo.footsteptimer = 0 //Reset the foostep timer.
end //End this block.
end //End the player and nightsmode check block
end //End the player iteration
end) //Finish the hook.
"and (player.pflags & PF_NIGHTSMODE)" should be "and not (player.pflags & PF_NIGHTSMODE)", and "player.panic" should be "player.panim", to begin with.
addHook("ThinkFrame", do //Adds a ThinkFrame hook.
for player in players.iterate //Gets the local player
if (player.mo and player.mo.skin == "Gargoyle") //Change "skinname" to the character's skin you want to use.
and not (player.pflags & PF_NIGHTSMODE) //Do not intefere with nights, it may crash the game.
if not player.mo.footsteptimer //If the variable "footsteptimer" doesn't exist,
player.mo.footsteptimer = 0 //Create the variable.
end // End this block
player.mo.footsteptimer = $1 + 1 //Add 1 to footsteptimer every tick. "$1" gets the variable's current value.
if (player.panim == PA_RUN) //Change to PA_WALK if you want it to happen when walking.
and player.mo.footsteptimer > TICRATE/2 //If half a second has passed since the last step sound,
S_StartSound(player.mo, sfx_STATU2) //Replace "soundname" with whatever the sound name is, removing "DS" from the beginning.
player.mo.footsteptimer = 0 //Reset the foostep timer.
end //End this block.
end //End the player and nightsmode check block
end //End the player iteration
end) //Finish the hook.
"and (player.pflags & PF_NIGHTSMODE)" should be "and not (player.pflags & PF_NIGHTSMODE)", and "player.panic" should be "player.panim", to begin with.
freeslot("sfx_statu2")
freeslot("sfx_statu2")
addHook("ThinkFrame", do //Adds a ThinkFrame hook.
for player in players.iterate //Gets the local player
if (player.mo and player.mo.skin == "Gargoyle") //Change "skinname" to the character's skin you want to use.
and not (player.pflags & PF_NIGHTSMODE) //Do not intefere with nights, it may crash the game.
if not player.mo.footsteptimer //If the variable "footsteptimer" doesn't exist,
player.mo.footsteptimer = 0 //Create the variable.
end // End this block
player.mo.footsteptimer = $1 + 1 //Add 1 to footsteptimer every tick. "$1" gets the variable's current value.
if (player.panim == PA_RUN) //Change to PA_WALK if you want it to happen when walking.
and player.mo.footsteptimer > TICRATE/2 //If half a second has passed since the last step sound,
S_StartSound(player.mo, sfx_statu2) //Replace "soundname" with whatever the sound name is, removing "DS" from the beginning.
player.mo.footsteptimer = 0 //Reset the foostep timer.
end //End this block.
end //End the player and nightsmode check block
end //End the player iteration
end) //Finish the hook.
this link tell me how ?
should i download slade ?
should i download slade ?