Teeworlds
IRC / bridge
One-way IRC channel bridge. If you want to be able to send messages to IRC, contact
@Dune
or
@heinrich5991
.
https://www.teeworlds.com/?page=docs&wiki=rules/irc_rules
Between 2020-11-08 00:00:00Z and 2020-11-09 00:00:00Z
Assa
2020-11-08 11:22:43Z
can sb. tell me how the hook_attach_ground-Sound is played? I see that it's added with all Sounds and there is a network message for it, but I can't find any place where it's played
11:26
https://github.com/teeworlds/teeworlds/blob/dc1802c20270679f112fef86e37e0831c8fe2104/src/game/client/gameclient.cpp#L1100
11:26
well this was hard to find
11:27
github-search didn't work there oO
Dune
2020-11-08 11:28:18Z
Yeah don't rely on github for searches
Assa
2020-11-08 12:53:59Z
Adding Sounds breaks the netcode :C
fokkonaut
2020-11-08 13:10:30Z
why?
Assa
2020-11-08 13:51:20Z
because the server sends the events and no other infos or flags
13:51
so if you send the event GAMECORE_HOOK_ATTACH the hook sound is played
13:53
if i want to add a different sound to hook ice, i need to add a flag to gamecore for material or something like tthat
redix
2020-11-08 13:57:01Z
You can do that, you just must not send this flag to old clients. Unfortunately flags and enums are not forward compatible... should be fixed for 0.8
Assa
2020-11-08 13:59:57Z
how does the network handle that? there is m_TriggeredEvents and I tried setting Event |= (Material << 16)
heinrich5991
2020-11-08 14:02:17Z
the client throws out packets with flags it does not know
14:02
netobjs* with flags that it does not know
Assa
2020-11-08 14:02:35Z
this worked btw but opened the scoreboard
heinrich5991
2020-11-08 14:02:46Z
huh
14:02
did you set another game flag by accident?
Assa
2020-11-08 14:03:39Z
yes but not by accident
14:03
if you hook ice you have HOOK_ATTACH + MATERIAL
14:04
in theory
Assa
2020-11-08 16:27:23Z
I am debugging the max ice speed currently, when going on a really really long ice plate you gain a lot of speed and ramp is going up
16:27
ramp*velspeed tops at 75 and then slowly declines, is that right?
Assa
2020-11-08 16:39:04Z
the speed is very weird in teeworlds
heinrich5991
2020-11-08 16:59:33Z
yes
17:00
when you go really fast (have high velocity), the horziontal movement is eventually slowed to a halt
Assa
2020-11-08 17:01:03Z
why don't we fix this?
heinrich5991
2020-11-08 17:03:37Z
well, a part of that is a feature
17:03
and you don't really go that fast in vanilla, so it's not really necessary
17:04
but I guess it can be fixed (just make sure not to break the feature)
Assa
2020-11-08 17:04:31Z
if(vel_next > vel_previous && vel_next*ramp < cur_speed) vel_next = vel_previous
17:04
just clip it to it's max value i think
heinrich5991
2020-11-08 17:05:00Z
doesn't work, the actual speed isn't modified
17:05
(see how you gain back your speed when your velocity decreases again)
17:06
what would work is probably refining the function for ramp
17:06
that it is constant after a certain point instead of falling to 0
Assa
2020-11-08 23:11:06Z
any ideas for ice sliding sounds?
gerdoe
2020-11-08 23:14:02Z
slide knife over the ice cube
(edited)
Dune
2020-11-08 23:35:28Z
I don't think there should be any sound
23:35
walking doesn't make sound
Exported 39 message(s)