code34 248 Posted November 2, 2017 OO POKER Lastest version: 0.1 by Code34 Description OO Poker is a class (object oriented) that permits to play texas holdem poker in A3. Like to Donate ? Donate with paypal Github: https://github.com/code34/oo_poker.altis Download: https://github.com/code34/oo_poker.altis/archive/master.zip Reference: http://forums.bistudio.com/showthread.php?167980-Object-Oriented-SQF-Scripting-and-Compiling Features: - Drawing of cards to several players Licence: Under Gpl, you can share, modify, distribute this script but don't remove the licence and the name of the original author Documentation: /* Author: code34 nicolas_boiteux@yahoo.fr Copyright (C) 2016-2018 Nicolas BOITEUX CLASS OO_POKER This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -------------------------------------------------------------------------------------------------------------- Function: _poker = ["new", ["nameofplayer1", "nameofplayer2"]] call OO_POKER; Create a new poker object Parameters: array containing the name of players Readme: /* Author: code34 nicolas_boiteux@yahoo.fr Copyright (C) 2016-2018 Nicolas BOITEUX CLASS OO_POKER This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ Create a main bus message between clients & server Usage: put the "oo_poker.sqf" and the "oop.h" files in your mission directory put this code into your mission init.sqf call compilefinal preprocessFileLineNumbers "oo_poker.sqf"; See example mission in directory: init.sqf Licence: You can share, modify, distribute this script but don't remove the licence and the name of the original author logs: 0.1 - OO POKER - first release Examples call compilefinal preprocessFileLineNumbers "oo_poker.sqf"; sleep 2; poker = ["new", ["code34", "computer", "Jamy"]] call OO_POKER; player addAction ["Distribute cards", {'distributeCards' call poker;}]; 1 Share this post Link to post Share on other sites
code34 248 Posted November 2, 2017 Hi, Just release the first version of this scipt that i developped today. For the moment, i only made the drawning of cards in local mode. if you are interested by,dont hesitate to say me i will improve it . Im bored to build UI, if someone is interested to made it, it will be very appreciated For better undestanding of results encoding translation : 14 => As 13 => King 12 => Queen 11 => Joker tile => K clover => T heart => C pike => P Share this post Link to post Share on other sites
Guest Posted November 2, 2017 An Armaholic mirror is now available: OO POKER v0.1 Share this post Link to post Share on other sites
code34 248 Posted November 2, 2017 Hey Foxhound ! Thank you for your help :) Share this post Link to post Share on other sites
Dedmen 2590 Posted November 2, 2017 9 hours ago, code34 said: call compilefinal preprocessFileLineNumbers "oo_poker.sqf"; sleep 2; poker = ["new", ["code34", "computer", "Jamy"]] call OO_POKER; player addAction ["Distribute cards", {'distributeCards' call poker;}]; compileFinal doesn't make any sense if you don't store the result in a variable. I see more and more people doing this recently. Share this post Link to post Share on other sites
code34 248 Posted November 2, 2017 You are right, i just check. There is no any kind of effect. I overwrite the object without difficulty with a dummy string. Think it works differently until this day, it s positive that other read your code :) Share this post Link to post Share on other sites
pognivet 150 Posted March 7, 2018 Wow. I remember having this idea a while back. I thought it would be great to have in-game timekillers since sometimes you spend a long time waiting around. It would be awesome if you could play poker or dice or something like that in-game at a base while waiting for something to happen. It would add a lot of atmosphere to have something like a Grad rocket strike interrupt your card game that you're having with your buddies in a bunker. I'm not the greatest scripter or GUI maker so I never took up the project, but I'm glad that someone is. I wish you the best of luck. Share this post Link to post Share on other sites
amiahtfrazier 0 Posted February 10, 2023 Glad to see the poker community expanding in A3! Share this post Link to post Share on other sites
Harzach 2507 Posted October 3, 2023 10 hours ago, Lindesity said: I'm excited to help you out. With what? Share this post Link to post Share on other sites
mrcurry 470 Posted October 4, 2023 On 10/3/2023 at 1:34 PM, Harzach said: With what? Obvious bot is obvious. Reported. Edit: Reported it, not you ofc 🙂 obvious semantics are not so obvious. Share this post Link to post Share on other sites
Harzach 2507 Posted October 4, 2023 50 minutes ago, mrcurry said: Obvious bot is obvious. Reported. Edit: Reported it, not you ofc 🙂 obvious semantics are not so obvious. Oh, I reported all three! Share this post Link to post Share on other sites