Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stealth - disable running
Author Message
Indiaret
Apprentice
*

Posts: 38
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Apr 2016
Reputation: 0



Post: #1
Stealth - disable running
Hi,

is it able to disable running while player is in stealth ? I mean if he starts to run in stealth, it will reveal him. Player should move in stealth only slowly (so only walking).

Thanks

My code in hiding and stealth:
Code:
[SKILL 21]
DEFNAME=Skill_Hiding
KEY=Hiding
TITLE=Shade
PROMPT_MSG=
EFFECT=10
DELAY=3.0,1.5
STAT_STR=0
STAT_INT=0
STAT_DEX=0
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=0
BONUS_STATS=0
ADV_RATE=0

ON=@Fail
    SRC.SYSMESSAGE You can't seem to hide here.

On=@Success
if !(STRCMPI(<tag.class>,thief))
tag.can_backstab=<eval <serv.time> +<var.backstab_timer>*10>
endif
if (<stealth><510)
local.steps=<eval <stealth>/250>
stepstealth=<eval 1+{0 <dlocal.steps>}>
else
float.Steps=<floatval (<stealth>/100)-0.5>
float.Steps2=<floatval 91@<float.steps>>
local.steps=<floattolocal <float.steps2>>
stepstealth=<eval 1+{<local.steps> <eval <local.steps>*2>}>
endif
sysmessage Number of steps :<eval <stepstealth>-1>


ON=@Abort
    SRC.SYSMESSAGE You stop trying to hide.

Code:
[SKILL 47]
DEFNAME=SKILL_STEALTH
KEY=Stealth
TITLE=Rogue
PROMPT_MSG=
DELAY=2.5
STAT_STR=0
STAT_INT=0
STAT_DEX=0
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=0
BONUS_STATS=0
ADV_RATE=0

on=@Start
skill hiding
return 1
02-10-2020 08:59 AM
Find all posts by this user Like Post Quote this message in a reply
Indiaret
Apprentice
*

Posts: 38
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Apr 2016
Reputation: 0



Post: #2
RE: Stealth - disable running
I could use probably @stepstealth trigger, but how to detect something like walk or run if player moves ? Is it possible ?

I mean:
on=@stepstealth
if (client_walk)
argn1=0
elif (client_run)
argn1=1 //reveal
endif
02-11-2020 04:48 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

This forum uses Lukasz Tkacz MyBB addons.