Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Space Guy

Pages: 1 ... 392 393 394 395 396 [397] 398 399 400 401 402 ... 410
5941
Modification Help / Re: horse model chage = crash
« on: June 06, 2007, 11:37:28 AM »
Change it back to the horseBrickImage thing and also try the animations method. Maybe go download Bleh's boats from RTB and modify them, they are quite crashprone, though.

5942
Suggestions & Requests / Re: Army tank
« on: June 06, 2007, 11:35:22 AM »
If the problem is with the driver only being able to trigger their own weapons rather than the vehicle, why not just have them firing all the time if someone is mounted?

For a static turret, maybe make the turning part into the "Wheels" of the vehicle so it faces where driver is if that is possible.

5943
Suggestions & Requests / Re: Suggestion To Help Us All
« on: June 06, 2007, 11:30:55 AM »
The Tutorial looks unfinished, anyway, Badspot will probably be adding more to do with the wrench and printer, maybe stuff to do with Macros. I'd like it if it had a way to teach people to use T to talk - when I first started BL0002 I didn't know what key to use...!

5944
Modification Help / Re: getDamagePercent()
« on: June 06, 2007, 11:28:25 AM »
Does anyone know how I could solve this / why Badspot has disabled this? It would be very helpful, as I need it to make my alternate PlayGUI work. (Needed for RPG mod, also having the HP bar visible in other servers)

5945
Modification Help / Re: bow help
« on: June 06, 2007, 11:25:40 AM »
To make a sword longer, make a new model or try (unsure) adding the code
Code: [Select]
scale = "1 1 1.3
to the swordImage datablock. For faster bows, do you mean fast reload or fast arrows?

5946
Modification Help / Re: horse model chage = crash
« on: June 06, 2007, 11:23:44 AM »
Try adding blank animations for things like shiftAway, run, etc.

Also, where is boatBrickImage defined? (brickImage = boatBrickImage;)

5947
Suggestions & Requests / Re: 1.04 Update Suggestions
« on: June 05, 2007, 12:00:13 PM »
Doesn't joining another server while in a game instantly crash you? I don't think the Join button autodisconnects...

5948
Modification Help / Re: Creating Text Files Using Functions
« on: June 05, 2007, 11:43:22 AM »
There's %client.netname and %client.lanname too, I think. %client.name is whichever one they are currently using. You could also store files by BL_ID.

5949
Modification Help / Re: Getting trandform Clientside?
« on: June 05, 2007, 10:53:46 AM »
echo(ServerConnection.getControlOb ject().getTransform());

I think it works, but not tested and may not work as most of the clientside "find your status" commands (damage level, etc) have been removed.

5950
Modification Help / getDamagePercent()
« on: June 04, 2007, 12:22:49 PM »
In an HP display mod I have, it uses "1 - ServerConnection.getControlOb ject().getDamagePercent();" to set the value of a health bar from 0 - 1. Since 1.03 arrived, this has stopped working, always returning "2" (1 - (-1)) - but the custom energy bar using "ServerConnection.getControlOb ject().getEnergyPercent();" continues to work fine. Why has this functionality of getting your own damage level been removed?

5951
Modification Help / Re: Else if
« on: June 04, 2007, 12:19:37 PM »
It may be something further up in the code which is causing the problem. Whole/more of the script, please?

5952
Modification Help / Re: Else if
« on: June 04, 2007, 11:30:21 AM »
Nearly, you missed a } though:
Code: [Select]
function blah(%client){
 if(%client.isSuperAdmin)
 {
  //Super
 }
 else if(%client.isAdmin)
 {
  //Admin
 }
 else
 {
  //None
 }
}

Also, for certain uses the switch and switch$ statements exist:
Code: [Select]
function ChooseClass(%client)
{
 %classNum = getRandom(0,3);
 switch(%classNum)
 {
  case 0:
   return "Warrior";
  case 1:
   %client.player.tool[0] = bowItem;
   messageclient(%client,'msgItemPickup',"",0,nametoID("bowItem"));
   return "Archer";
  case 2:
   messageclient(%client,"","\c5You are now a White Mage! Go to the Rune Shop and buy magical Runes.");
   return "White Mage";
  default:
   echo("It's not any of the ones above, return the default:");
   return "Trader";
 }
}

switch$ functions in the same way, except it checks for strings:
Code: [Select]
function servercmdLoadType(%client,%filename)
{
 if(!%client.isSuperAdmin){return;}
 if(%filename $= ""){messageclient(%client,"","\c0ERROR: \c3No filename given.");return;}
 messageclient(%client,"","\c5Loading bot type from file \c3Add-Ons/Client/" @ %filename @ ".bottype\c5...");
 $BotSettings[%filename]=0;
 %file=new fileObject();
 %file.openForRead("Add-Ons/Client/" @ %filename @ ".bottype");
 while(!%file.isEOF())
 {
  %line=%file.readLine();
switch$(firstWord(%line))
{
case "DECAL":
$BotDecal[%filename] = restWords(%line);
case "FACE":
$BotFace[%filename] = restWords(%line);
case "DATA":
$BotData[%filename] = restWords(%line);
case "NAME":
$BotName[%filename] = restWords(%line);
default: //Setting appearance
$BotAppear[%filename,$BotSettings[%filename]++] = firstWord(%line);
$BotColor[%filename,$BotSettings[%filename]] = restWords(%line);
}
 }
 %file.close();
 %file.delete();
 messageclient(%client,"","\c5Finished loading. Bot type added: \c3" @ %filename);
}

5953
Suggestions & Requests / Re: special glass
« on: June 03, 2007, 10:32:55 AM »
base/data/Interiors/gh2/Mirror/mirror01.dif

Spawning that mirror with F11 makes a functioning, lowlag mirror reflecting everything (FX, particles, outside) except you, while in 1st person.

You might not actually have this file, hard to tell in all the other game read:AOT stuff I've ported.

5954
Suggestions & Requests / Re: All Caps Preventer.
« on: June 03, 2007, 10:24:37 AM »
If it was like the Age of Time one, where anything above half caps is counted as "All Caps". In Aloshi's, someone could say "A REALLY LONG YELLING SENTENCE caps prevent" and get no message.

5955
Modification Help / Re: Warp Script
« on: June 02, 2007, 02:16:48 PM »
Doesn't /warp do the same thing, except allow you to go as far as you want?

Pages: 1 ... 392 393 394 395 396 [397] 398 399 400 401 402 ... 410