| Blockland Forums > Suggestions & Requests |
| [Request] Playing custom player animations with customizable keys (+double jump) |
| << < (3/3) |
| Demian:
--- Quote from: jes00 on June 26, 2013, 08:16:52 AM ---Is the double jump animation a default animation? If so, which one? If it's a custom animation, what's it called? How much velocity? Do you want only a certain playertype to be able to double jump? Or every one? --- End quote --- Since there appears to be much confusion about my request I've modified the OP. |
| jes00:
--- Quote from: Demian on June 25, 2013, 05:54:05 AM ---1) Playing custom player animations with configurable keys. For example setting a key in the controls to play a kick animation. Addendum: A client sided a script that adds a new line to the controls list in the options. For example a kick option that you could bind to K and when you are using my player type in-game and press K the kick animation plays. --- End quote --- --- Code: (Client.cs) ---function addBind(%division, %name, %command) { for(%i=0;%i<$remapCount;%i++) { if($remapDivision[%i] $= %division) { %foundDiv = 1; continue; } if(%foundDiv && $remapDivision[%i] !$= "") { %position = %i; break; } } if(!%foundDiv) { error("Division not found: " @ %division); return; } if(!%position) { $remapName[$remapCount] = %name; $remapCmd[$remapCount] = %command; $remapCount++; return; } for(%i=$remapCount;%i>%position;%i--) { $remapDivision[%i] = $remapDivision[%i - 1]; $remapName[%i] = $remapName[%i - 1]; $remapCmd[%i] = $remapCmd[%i - 1]; } $remapDivision[%position] = ""; $remapName[%position] = %name; $remapCmd[%position] = %command; $remapCount++; } addBind("Actions", "Kick", "doKick"); function doKick(%bool) { commandToServer('doKick', %bool); } --- End code --- --- Code: (Server.cs) ---function serverCmdDoKick(%client, %bool) { if(!isObject(%client.player)) { return; } if(%client.player.getDatablock().getName() $= "myPlayerData" && %bool) { %player.playThread(0, "kick"); //Do other kick stuff. } } --- End code --- |
| Navigation |
| Message Index |
| Previous page |