MalkContent
Member-
Content Count
4 -
Joined
-
Last visited
-
Medals
Community Reputation
1 NeutralAbout MalkContent
-
Rank
Rookie
-
publicVariableClient in OnPlayerConnected event - how to? :/
MalkContent replied to MalkContent's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
many thanks, I thought it would work, but apparently this does not work for any player except the first to join. for all subsequent ones _clientId remains -1 :( -
publicVariableClient in OnPlayerConnected event - how to? :/
MalkContent posted a topic in ARMA 2 & OA : ADDONS - Configs & Scripting
I am trying to use publicVariableClient in an OnPlayerConnected event. Sadly I need the "clientID" for this and OnPlayerConnected only hands you the sessionID(_id), uniqueID(_uid) and the playername(_name) of the connected client :/ Any ideas how I would go about doing this? -
Serverside Change Date/Echo Date Script
MalkContent posted a topic in ARMA 2 & OA : ADDONS - Configs & Scripting
Hello, I am trying to create a serverside script which allows admins to alter or echo the ingame date with chat commands like so: "#setDate[2012, 10, 1, 8, 58]" and "#date" since I am fairly new to ArmA 2 scripting, lack knowledge of the proper syntax for many things, so here is some pseudo code: #date: hint date; #setDate[%1, %2, %3, %4, %5] year = parseNumber %1; month = parseNumber %2; day = parseNumber %3; hour = parseNumber %4; minute = parseNumber %5; setDate[year, month, day, hour, minute]; (as far as I understood it, setDate accepted values out of bounds for hours and such, being smart and starting new days, so for now no concern regarding the values there.) Aside from possible errors in the script syntax, I require assistance with how to capture and parse the chat. I am pretty certain that the script language doesn't support regex (please correct me if I am wrong, I'd be obliged), so here's a "manual" attempt in pseudocode: if(newChat) { newLine = newChat.getText(); if(substr(newLine, 0, 1)=="#" && isAdmin(newChat.getPlayer)) { admincommand = substr(newLine, 1); if(admincommand == "date") [] exec adminechodate.sqf; else if(substr(admincommand, 0, 8)=="setDate[" && substr(admincommand, length(admincommand)-1, length(admincommand))=="]") { datearray=explode(", ", substr(admincommand, 8, length(admincommand)-1); datearray exec adminsetdate.sqf; } } I hope I get the overall idea across. I'd like to know if something like this is possible at all and (even though the amount might be excessive) what I did wrong so far :) -
Arma 2 Addon request thread
MalkContent replied to Placebo's topic in ARMA 2 & OA - ADDONS & MODS: DISCUSSION
Hello, I am looking for multiplayer script/edit help. I am an experienced programmer, but I never did anything with ArmA 2 except playing it. To not talk around it, as it may be a "i don't care about THIS mod" moment, I am running a private hive DayZ server from my home machine. I am using this to play a 8 player, teams of 2 Hunger Games/Battle Royale with a bunch of friends. There is no BattleEye active, so the scripts/edits can be pretty invasive. If it helps anyone to know what they are dealing with: I am using Bliss to host/setup the server. The edits/scripts I am looking for are the following (ordered by importance): Freeze players - We are playing in sessions and we play simultaniously. So in order to guarantee absolute fairness, I'd like to be able to freeze all players in place after they initially joined the game. When everyone is ready - unfreeze and the game resumes to normal. The optimal case would be if there was some way to give players a whitescreen/blackscreen until the unfreeze. Teleport Players - at the moment our teams spawn all over the map. In order to create situations like "all players begin in the same area" or "all teammates begin in the same place" I'd like to teleport players to certain coordinates and/or to other players. Change Server Time - The DayZ ingame time is real time and dependent on the time set on the hosting machine. We are playing a rather elaborate game, so we have to take breaks because we can't just play straight until only 1 team remains. However, when we do take breaks, we remember the time we shut the server down and when we continiue I rehost the server at the same time. However this does require me to change the time of my pc - which gets a little annoying. Since I assume that changing the time of the server with scripts is a rather easy thing todo, I'd like to know how I can accomplish this feat. Transform Player into a Crow - I want to be able to transform players that died into crows to allow them spectating the remaining players. I understand that this is the usual respawn form of ArmA 2 Coop missions. Since this is not the case for DayZ, I probably need to transform the respawned players via a script, unless someone here actually knows how to change the respawn rules. Forbid Zone Script - as the game progresses we forbid the players to go to certain areas of the map in order to limit the playground and promote contact between the teams. If possible I'd like to make a script that displays a 10 second warning upon entering forbidden zones - alternatively a script to create invisible/translucent colored walls around the forbidden zones. The zones would be defined as 2d figures defined by any number of corners which know their 2 adjacent corners. I have no idea how difficult this is to do in ArmA 2 and I don't expect this to be possible at all. The following things are probably special for DayZ, so please don't feel insulted by me asking for assistance with it: Edit Loot Spawnrates / despawn certain loot upon spawning - I want to forbid certain items in the game Thank you for reading this. If I am in the wrong thread/forum with this, please let me know. Kind regards