thomasleveil / b3-plugin-poweradminurt

B3 plugin that brings Urban Terror 4.1 and 4.2 admin features to B3
http://forum.bigbrotherbot.net/xlr-releases/poweradminurt-1-4-0-for-urban-terror!/
4 stars 2 forks source link

New g_gear CVAR behavior #17

Closed danielepantaleone closed 10 years ago

danielepantaleone commented 10 years ago

CVAR now doesn't use bit flags anymore. New specs can be find here: http://www.urbanterror.info/support/180-server-cvars/#1.2 There would be a need to check g_modeversion and apply the correct algorithm

I can have a look next week if I find some time, otherwise up to you :smile:

thomasleveil commented 10 years ago

If you could take a look at this, that would be nice. I guess code from https://github.com/thomasleveil/b3-plugin-weaponcontrolurt42 can be copied over for most parts. and the weaponcontrolurt42 plugin is now obsolete

danielepantaleone commented 10 years ago

I'm on it

danielepantaleone commented 10 years ago

Not my best work but here it is: https://github.com/FenixXx/b3-plugin-poweradminurt/commit/6c8b24ffc6ea16724da927e69fddc7fb154d5cb1 Would you mind sending me a pull request with updated tests? I got a couple of exams this week and my time is limited. I'll send you a pull request after merging updated tests.

thomasleveil commented 10 years ago

no pb. It might take a few days but I can handle the tests

danielepantaleone commented 10 years ago

:+1:

thomasleveil commented 10 years ago

done in https://github.com/FenixXx/b3-plugin-poweradminurt/pull/2