Worldofjimmy Posted June 21, 2021 Share Posted June 21, 2021 As the title, what is the Block function supposed to do? I don't really see any kind of Blocking happening? Just like freezing the walking animation :o   Link to comment Share on other sites More sharing options...
1 Weylon Santana Posted June 22, 2021 Share Posted June 22, 2021 Blocks dont work anymore, this is the old block function: Â Worldofjimmy and Justn 2 Link to comment Share on other sites More sharing options...
0 Push Posted June 21, 2021 Share Posted June 21, 2021 1 hour ago, Worldofjimmy said: As the title, what is the Block function supposed to do? I don't really see any kind of Blocking happening? Just like freezing the walking animation :o  The map attribute 'Block' prevents movement on that tile. The 'Shield' function for a spell attribute reduces damage taken for the time allotted. EDIT: Just realized you were referring to the block function for the action key. This reduces damage taken but slows movement and prevents attacking. Link to comment Share on other sites More sharing options...
0 Justn Posted June 21, 2021 Share Posted June 21, 2021 From my understanding it was intended for the player to use a shield to block projectiles/attacks using right click. I remember seeing screenshots of someone using this in the past they were blocking rocks thrown at them or something but when I last checked the code I didn't see blocking actually doing anything if I'm not mistaken. Maybe someone should open a pull request add some function for it if it is not already there. You can change the speed though with this ""BlockingSlow": 30," in the config file. Â Ok it does look like some function is added it does only seem to run though if you have a shield equipped. Not sure exactly what it is calculating though. May be incomplete? Hopefully someone more familiar with it can help. Would be good to know what exactly it should be doing. Â Â public void TryBlock(bool blocking) Â Â Â Â { Â Â Â Â Â Â if (AttackTimer < Globals.Timing.Milliseconds) Â Â Â Â Â Â { Â Â Â Â Â Â Â Â if (blocking && !Blocking && AttackTimer < Globals.Timing.Milliseconds) Â Â Â Â Â Â Â Â { Â Â Â Â Â Â Â Â Â Â Blocking = true; Â Â Â Â Â Â Â Â Â Â PacketSender.SendEntityAttack(this, -1); Â Â Â Â Â Â Â Â } Â Â Â Â Â Â Â Â else if (!blocking && Blocking) Â Â Â Â Â Â Â Â { Â Â Â Â Â Â Â Â Â Â Blocking = false; Â Â Â Â Â Â Â Â Â Â AttackTimer = Globals.Timing.Milliseconds + CalculateAttackTime(); Â Â Â Â Â Â Â Â Â Â PacketSender.SendEntityAttack(this, 0); Â Â Â Â Â Â Â Â } Link to comment Share on other sites More sharing options...
Question
Worldofjimmy
As the title, what is the Block function supposed to do? I don't really see any kind of Blocking happening? Just like freezing the walking animation :oÂ
Â
Â
Link to comment
Share on other sites
3 answers to this question
Recommended Posts