Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2023-02-15 00:00:00Z and 2023-02-16 00:00:00Z
Avatar
can you add an /afk or something to activate the perpetual zzz emote & show other players not to grab
02:20
waiting for the timeout is risky
Avatar
Avatar
Iza
Is there still something going on with it or?
Learath2 wanted to create something, didnt yet i think
Avatar
Avatar
newlesstee
Ammo doesn't show
Pls, help
Avatar
Avatar
newlesstee
Pls, help
Can you show a screenshot?
15:10
Of the code in Gamecontroller
Avatar
Avatar
newlesstee
@Robyt3
@fokkonaut you mean this?
Avatar
No, CGameController::Snap()
15:14
where you show the ammo
15:15
And the next thing you need to take care of, if you send the Gameinfo flag already, check that CCharacter::Snap() sets pCharacter->m_Ammo
Avatar
CGameController::Snap doesn't exist
Avatar
Yes, it does, its where you set the Gameinfoflag_hud_ammo
15:24
Make sure you are on the server side
Avatar
@fokkonaut
15:26
🤔
15:28
Avatar
Ok, and do you have m_Ammo > 0?
15:32
do Hearts and shields work.
15:32
?*
Avatar
Avatar
fokkonaut
do Hearts and shields work.
Yes
Avatar
Avatar
fokkonaut
Ok, and do you have m_Ammo > 0?
Avatar
Try to set AmmoCount = 10 below, so you can validate if it works in general. m_Ammo is -1 in ddrace, cuz its unlimited.
15:36
and -1 < 0 = wont get set. it will stay 0 and therefore nothing is shown in the client
Avatar
@fokkonaut worked! but client have unlimited ammo
15:38
can you join in the server?
Avatar
No sorry, but what you do in Snap() is just giving information to the client, its not the logic behind it.
Avatar
yeah
Avatar
Thats why its still unlimited
Avatar
but in give weapon isn't -1
15:39
15:39
or Maxammo is -1?
Avatar
should be 10, probably
15:40
maybe validate using GameServer()->SendChatTarget(GetPlayer()->GetCID(), "hello") whether this gets executed
15:41
or, use dbg_msg("test", "Ammo: %d", .......m_Ammo)
15:41
And then see console if it printed
Avatar
Print the value
15:42
to make sure its not -1
15:42
monkaS
15:43
I thinking..
Avatar
Print the value of m_ammo in snap(), where you set the AmmoCount
Avatar
if the fireweapon dont remove the ammo?
Avatar
To see if it arrives there
Avatar
Avatar
newlesstee
if the fireweapon dont remove the ammo?
idk, ddnet code is pretty different from vanilla nowadays
15:44
gtg do smth in rl
15:45
lol
15:47
@fokkonaut works, but dont update the client
15:48
oh
15:48
xD
15:51
@fokkonaut sorry for metion, can you help me with the shotgun?
Avatar
You can simply copy the vanilla shotgun code I believe, on CCharacter::FireWeapon. But keep in mind, that the tunings are different. See Gamecontext for where the shotgun tunings are set. (several places) If you change that, the bullets from editor (explosive bullet that bounces on blocks and freezes you) will be insanely fast. In my mod I managed to have both, but it requires some more deep changes, so you should give up one for now
Avatar
Avatar
fokkonaut
You can simply copy the vanilla shotgun code I believe, on CCharacter::FireWeapon. But keep in mind, that the tunings are different. See Gamecontext for where the shotgun tunings are set. (several places) If you change that, the bullets from editor (explosive bullet that bounces on blocks and freezes you) will be insanely fast. In my mod I managed to have both, but it requires some more deep changes, so you should give up one for now
afair copy-paste of vanilla shotgun back to ddnet never ended with some good results
Avatar
tunings*
16:17
Join my server, go in /survival, wait for a round to start and see
16:18
and at the same time the ddnet freeze bullets also work :)
Avatar
@fokkonaut how ot change the tunings to vanilla?
17:21
i have paste the code of vanilla but dont work like vanilla
Avatar
Said that already
Avatar
@fokkonaut what values?
Avatar
Jupstar ✪ BOT 2023-02-15 18:28:49Z
discord down
Avatar
What will the Go language be called when it goes out of trend? Went
19:19
Badum tsss
Avatar
afaik google wants to add telemetry to go
19:20
or wait did i see it here xd
Avatar
Avatar
Ryozuki
What will the Go language be called when it goes out of trend? Went
Rust-> Rust, C-> saw
19:27
Python-> Byethon
Avatar
C# -> CDull
Avatar
Avatar
Mr.Gh0s7
Rust-> Rust, C-> saw
Rust -> Polish
Avatar
Reduce duplicate code and improve correctness by passing indices of quad, buffer and text containers by reference and always setting them to -1 after they are deleted. Also check if index is -1 before trying to delete it to reduce duplicate code when calling the methods.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially bas...
Avatar
3f050f5 Add CFGFLAG_SAVE flag to save prediction margin (fixes #6332) - Chairn 9941bda Merge #6333 - bors[bot]
Exported 78 message(s)