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 - Headcrab Zombie

Pages: 1 ... 229 230 231 232 233 [234] 235 236 237 238 239 ... 781
3496
Off Topic / Re: Furry Megathread - Furry Things Here
« on: April 07, 2015, 10:08:01 PM »
Too bad I have only been aroused by girls
i told myself that a few years ago

= my brother was straight for 15 years and he is now gay and in a relationship
he wasn't straight
he just didn't realize he was gay

3497
Off Topic / Re: Furry Megathread - Furry Things Here
« on: April 07, 2015, 10:01:38 PM »
Another reason why you probably won't break me is I grew up in a heavily religious house

I might be an athiest but my parents still treat me like a Christian

too bad religion doesn't affect your loveuality

3498
Off Topic / Re: Furry Megathread - Furry Things Here
« on: April 07, 2015, 09:37:54 PM »


3499
If an object doesn't exist, then you're not going to find any objects on a non-existant object.

Try Armor::Damage instead of AIPlayer::Damage
That's what I always see people use

3500
Off Topic / Re: Furry Megathread - Furry Things Here
« on: April 07, 2015, 07:24:01 PM »
I like the new UI on desktop

but it's kinda bad on my phone
like overlapping elements
and a lot of links are actually like 20 pixels above where the actual text is

3501
Off Topic / Re: Furry Megathread - Furry Things Here
« on: April 07, 2015, 06:09:34 PM »
keep the foxes up
I like how your responses to male/gay pictures have slowly changed from "no stop" to neutral to "yes more"

3502
Off Topic / Re: Furry Megathread - Furry Things Here
« on: April 07, 2015, 06:04:57 PM »

3503
General Discussion / Re: Console Command List
« on: April 07, 2015, 12:00:31 PM »
Eh, not really, new fxPlane(GroundPlane);
I did this in Xalos open code after someone deleted it and the new plane was slightly off on the Z position, so your couldn't build cuz everything was either floating or buried

3504
cut off your finger and tape it to your eyebrow

3505
Games / Re: World of Warcraft Megathread v2
« on: April 07, 2015, 10:09:00 AM »
Might be merging with another guild for mythic brf.
Doing a joint heroic brf tonight to see how it goes.

3506
Thanks, I should've known this. But now, my code actually needs the %client, since it's doing an autocheck for whether you should be levelled up.
Naming it %client won't magically make it a client. The first argument will always be the object is called upon (on your case, the brick). A name is just a name. You could name it %cheesePizzaAndBurgers and it would still be a brick. All it does is give you, the programmer, a description of what it is. The scripting engine doesn't care at all.

If you need client, then you need a method that is called on death that takes a client parameter. Just adding client to the arguments doesn't do anything because the code calling it won't be giving it that value


This doesn't work:

function servercmdStats(%client)
{
    talk("Your Level:" SPC %client.level);
}

The only reason for this not to work is if %client.level isn't defined. Make sure your leveling up before you check this
Also, I forgot what talk does. It either sends client side chat messages to server, or announces server side message to everyone. Neither is what you want. You want:
messageclient(%client,'','Your level: %1', %client.level);

3507
The first function I can't tell what you want to do.
If you want something that's called when you type /playdeathanimation, the function name should just be serverCmdPlayDeathAnimation
If that's not what you want, then I don't know what you want


For the second function
fxDtsBrick::onBotDeath.....might be the correct function for bots spawned through events. But that's the only bots it would work for.
The %client arguments isn't pointing to a client (you can technically name it whatever you like, but you should name it what it's actually describing so you know what's going on)
In a method (a function called on an object, named in the format className::functionName) the first argument is always be the object it's called on and is typically named %this. So, in this example, since it's an fxDtsBrick,  the first argument is the brick that it's called on



Your questions:
1. You need to call the parent. Insert Parent::onBotDeath(%this); in the function. This calls the original version of the function.
(The argument name %this assumes you renamed the %client to %this)
2. A function with a name beginning with serverCmd, a messageAll call, and a reference to the level variable that you already have correctly used in your first post

3508
u wot m(18/2)-1 ? Isn't that what i just said? Lol.
...yes, apparently i didn't read it

3509
2. Yes, you shouldn't need a loop to achieve this. Simply check the value every time the variable is modified.
More info: do the check wherever your adding to pts
herp

3510
Off Topic / Re: Furry Megathread - Furry Things Here
« on: April 06, 2015, 06:49:25 PM »

Pages: 1 ... 229 230 231 232 233 [234] 235 236 237 238 239 ... 781