Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 09:50:54 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: [Item idea] Amulet of the cat  (Read 1858 times)
DoPe^
Newbie
*
Posts: 9


View Profile Email
« on: September 12, 2010, 09:18:51 AM »

like the good old wc3 mod for cs, when you buy this item your footsteps will be silent when you run.
would be awesome to get this item back Smiley

Helm of Excellence would also be awesome, where you are immune to headshots.
Logged
Necavi
Full Member
***
Posts: 217


View Profile
« Reply #1 on: September 12, 2010, 04:06:34 PM »

If one were to make a Helm of Excellence, it would be a good idea to have an internal cooldown of at LEAST one second.
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #2 on: September 12, 2010, 09:09:21 PM »

i dont exactly how to do these functions myself, id need sample code or someone makes it for us
Logged

DarkEnergy
Rambomst
Newbie
*
Posts: 5


View Profile Email
« Reply #3 on: September 13, 2010, 12:45:57 AM »

Making silent footsteps is pretty much impossible to do without breaking other things in the process. I found a way to make your footsteps silent but it stopped working for a second after you had jumpedand you couldn't activate triggers etc when you had silent footsteps. I could give you the code if you want.
Logged
DoPe^
Newbie
*
Posts: 9


View Profile Email
« Reply #4 on: September 13, 2010, 01:44:04 AM »

Making silent footsteps is pretty much impossible to do without breaking other things in the process. I found a way to make your footsteps silent but it stopped working for a second after you had jumpedand you couldn't activate triggers etc when you had silent footsteps. I could give you the code if you want.

so it's not possible to like make "sv_footsteps 0" for just the client that has the item?

meh Sad
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #5 on: September 13, 2010, 07:43:08 AM »

or hook sound?
Logged

DarkEnergy
stinkyfax
Full Member
***
Posts: 116


View Profile Email
« Reply #6 on: September 13, 2010, 03:05:39 PM »

or hook sound?
Hooking sound works. Though I don't know how difficult it's going to be to find out who is the owner of footstep sound to analyze whether lock it or not.
and hooking will fail for people with >150 ms ping.
Logged

Anthony Iacono
Lead Developer
Full Member
***
Posts: 132

Lets make it better.

anthonyiacono@gmail.com
View Profile WWW Email
« Reply #7 on: September 13, 2010, 03:59:40 PM »

After looking into this, it seems that footstep sounds exist on the client side. However, I have not given up. Maybe you could set sv_footsteps to 0 and manually play footstep sounds to a proper list of clients. This seems like it would be a big enough modification to make it into the core.
If there is alot of interest in this, we can try to do some testing on manually handling footstep sounds.
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #8 on: September 13, 2010, 09:45:39 PM »

wow thats gonna be epically intense, u should try the helm first
Logged

DarkEnergy
DoPe^
Newbie
*
Posts: 9


View Profile Email
« Reply #9 on: September 14, 2010, 07:45:06 AM »

After looking into this, it seems that footstep sounds exist on the client side. However, I have not given up. Maybe you could set sv_footsteps to 0 and manually play footstep sounds to a proper list of clients. This seems like it would be a big enough modification to make it into the core.
If there is alot of interest in this, we can try to do some testing on manually handling footstep sounds.

would be awesome mate
Logged
Ben
Newbie
*
Posts: 9



View Profile
« Reply #10 on: September 14, 2010, 11:46:47 PM »

Maybe two other ways:

1. Repeating Timer doing CBasePlayer.m_fFlags 4
2. Isnt there a way to hook player_air ? (i remember in times of eventscripts that extended events used that hook)
Logged
stinkyfax
Full Member
***
Posts: 116


View Profile Email
« Reply #11 on: September 15, 2010, 11:44:39 AM »

Maybe two other ways:

1. Repeating Timer doing CBasePlayer.m_fFlags 4
2. Isnt there a way to hook player_air ? (i remember in times of eventscripts that extended events used that hook)
there is no player_air event, and wtf player_air means? if you want to make people float, this isn't a solution since you're running into way more trouble.
Logged

Ben
Newbie
*
Posts: 9



View Profile
« Reply #12 on: September 15, 2010, 01:01:43 PM »

there is no player_air event, and wtf player_air means?

I didnt say that it was an standard event. player_air was fired when a player is in the air (from jumping, falling, etc.). It checked every tick Playerprop CBasePlayer.localdata.m_Local.m_flFallVelocity and CBasePlayer.localdata.m_hGroundEntity ... forget it, crap idea...

Anyway, there is no way to hook changes to m_fFlags Sad
Thats how you set it:

Code:
m_Offset=FindSendPropOffs("CBasePlayer","m_fFlags")
entvalue=GetEntData(client,m_Offset,4)
SetEntData(client, m_Offset, 4, 4, true)

manually handling footstep sounds? depending on ground? (grass, metal, wood, etc. ..)
« Last Edit: September 16, 2010, 02:45:25 PM by Ben » Logged
zero
Full Member
***
Posts: 191



View Profile WWW Email
« Reply #13 on: December 31, 2010, 02:14:39 PM »

could just block client game sound in a radius instead.
Logged

[Oddity]TeacherCreature
Sr. Member
****
Posts: 461


View Profile
« Reply #14 on: December 31, 2010, 02:22:45 PM »

I belevie their is an off set for this that you can activate pretty easy.
The way WCS worked is if you had amulet and press crouch then footstep porperty was removed and if you jumped it was back

It was always a worthless featue hardly anyone purchased anyway lol
Logged

Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 402


⠠⠵


View Profile
« Reply #15 on: December 31, 2010, 08:33:21 PM »

Try messing with any of these?

CBasePlayer::UpdateStepSound(surfacedata_t *,Vector  const&,Vector  const&)
CBasePlayer::PlayStepSound(Vector &,surfacedata_t *,float,bool)
CBasePlayer::GetStepSoundVelocities(float *,float *)
CBasePlayer::SetStepSoundTime(stepsoundtimes_t,bool)
Logged

qwerty
Jr. Member
**
Posts: 87


View Profile
« Reply #16 on: January 01, 2011, 12:52:07 AM »

the way i'm unerstanding what you're asking, you want an item that allows you to run w/out footsteps?

instead of trying to remove footsteps, why not increase crouch movement speed up to whatever the player's normal running speed is?  since crouching produces no sound, it stands to reason that moving faster while crouched wouldn't either.  i'm not sure if you can do it, but it has to be alot easier than selectively removing a single player's footsteps.
Logged
[Oddity]TeacherCreature
Sr. Member
****
Posts: 461


View Profile
« Reply #17 on: January 01, 2011, 08:14:21 AM »

I dont think they want to hold a button to use this
Logged

qwerty
Jr. Member
**
Posts: 87


View Profile
« Reply #18 on: January 01, 2011, 01:41:24 PM »

maybe not, but it's gotta be better than nothing at all, right?
Logged
[Oddity]TeacherCreature
Sr. Member
****
Posts: 461


View Profile
« Reply #19 on: January 01, 2011, 03:08:02 PM »

Well personally I would rather have nothing lol even if it worked as intended I always thought it was a waste of an item
Logged

em-eukal
Newbie
*
Posts: 40


View Profile
« Reply #20 on: January 01, 2011, 04:51:03 PM »

Amulet was the best item and it always would be Wink

I hope u will find a way to get it working...
Logged
qwerty
Jr. Member
**
Posts: 87


View Profile
« Reply #21 on: January 01, 2011, 05:44:31 PM »

the wcs implementation sucked.  it basically made you move at crouch speed.

it's an overall useless item, but if people want it then modding crouch speed is the way to go.

Logged
Ben
Newbie
*
Posts: 9



View Profile
« Reply #22 on: January 02, 2011, 02:28:20 AM »

Its an awesome feature if you have a race which is hard to see Wink
Logged
em-eukal
Newbie
*
Posts: 40


View Profile
« Reply #23 on: January 02, 2011, 06:03:30 AM »

Modding crouch speed is useless.
There must be a way to get footsteps silent  Angry
Logged
Hamm
Newbie
*
Posts: 4


View Profile
« Reply #24 on: October 08, 2011, 02:08:36 PM »

I noticed in the old cs WAr3ft they did this:


// Amulet of the Cat
if ( ITEM_Has( id, ITEM_AMULET ) > ITEM_NONE )
{
entity_set_int( id, EV_INT_flTimeStepSound, 999 );
}
}

is there a way to alter this coding idea for use in War3:Source?
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!