Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 25 of 62
Search took 0.00 seconds.
Search: Posts Made By: Boonie
Forum: Plugins 08-01-2017, 06:41
Replies: 12
Views: 8,346
Posted By Boonie
Re: [TF2] Tele-Trap Prevention

Updated.
I think this is the last time I need to update unless someone finds a bug.
Forum: Scripting 07-26-2017, 20:23
Replies: 7
Views: 1,738
Posted By Boonie
Forum: Scripting 07-26-2017, 07:09
Replies: 7
Views: 1,738
Posted By Boonie
Re: int array to float array from function

What do you mean by "Have the caller provide the output array"?


Ah, that makes sense.
Forum: Scripting 07-26-2017, 06:24
Replies: 7
Views: 1,738
Posted By Boonie
int array to float array from function

I'm trying to convert an int array to a float array but I'm not quite sure how. Currently I have it so "out" gets the array value too, but this is what is making it not compile. If I remove the [i]...
Forum: Scripting 04-20-2017, 10:27
Replies: 8
Views: 2,195
Posted By Boonie
Re: Optional argument

This is exactly the way I ended up doing it.
Forum: Scripting 04-19-2017, 14:28
Replies: 6
Views: 1,470
Posted By Boonie
Convert int array to float array

Is there a way to convert an into array to a float array.

This is the current way I am doing it:
size[0] = float(isize[0]);
size[1] = float(isize[1]);
size[2] = float(isize[2]);
Forum: Scripting 04-19-2017, 11:10
Replies: 8
Views: 2,195
Posted By Boonie
Re: Optional argument

I knew you could do it with a bool, but how about with a string.
Forum: Scripting 04-19-2017, 10:58
Replies: 8
Views: 2,195
Posted By Boonie
Optional argument

Is there any way to have an optional argument?

public void func(float some[3], float more[3], int args[4], char[] some-optional-arg) {
//stuff
}
Forum: Scripting 04-18-2017, 07:11
Replies: 2
Views: 769
Posted By Boonie
Re: add variable to float

Well that's disappointing, thanks.
Forum: Scripting 04-18-2017, 07:07
Replies: 2
Views: 769
Posted By Boonie
add variable to float

Edit: Oops, move to Scripting.

Is there a way to mix floats with variables? I keep getting a "must be a constant expression" error.

Example:
float stuff[3] = { 48.0, 48.0, 40.0 };
float...
Forum: Plugins 04-16-2017, 10:40
Replies: 12
Views: 8,346
Posted By Boonie
Forum: Scripting 04-15-2017, 09:57
Replies: 2
Views: 1,527
Posted By Boonie
Show bounding box for entity

Is there any way to show the bounding box for a prop_dynamic for everyone on the server?

If I try and set cl_ent_bbox or ent_bbox for the model I'm using, nothing happens. I looked through the...
Forum: Plugins 04-15-2017, 06:02
Replies: 9
Views: 7,496
Posted By Boonie
Re: [TF2] Anti-Grief

It looks like you are doing the Zone boundaries a little weird, that might have something do do with it.
The first set of float numbers is the position of the box in the world, that looks fine.
The...
Forum: Scripting 07-21-2016, 07:42
Replies: 4
Views: 1,258
Posted By Boonie
Forum: Scripting 07-20-2016, 13:12
Replies: 4
Views: 1,258
Posted By Boonie
[TF2] Get origin from carried building

I'm trying to get the origin from a building that is being built (pre built, the blueprint), but the origin is always 0. If I hook player_carryobject or player_buildobject, it shows where it was...
Forum: Scripting 07-15-2016, 12:32
Replies: 2
Views: 765
Posted By Boonie
Re: Hook command with spaces?

I actually just found that right before you posted, and I though I looked enough before I posted. :oops:
Forum: Scripting 07-15-2016, 12:24
Replies: 2
Views: 765
Posted By Boonie
Hook command with spaces?

I'm trying to get what the player is holding (engineer building, or spy sapper). Is it possible to hook a command with spaces?

AddCommandListener looks like it only works if there are no spaces in...
Forum: Scripting 06-22-2016, 12:50
Replies: 0
Views: 1,051
Posted By Boonie
Get client from VGUI Menu action?

Edit: Just being dumb, I'll just use OnClientPutInServer instead

// -----------------------------------------------------------------------

This is for TF2 if it makes any difference.
I'm...
Forum: Plugins 10-17-2015, 10:17
Replies: 12
Views: 8,346
Posted By Boonie
Re: [TF2] Tele-Trap Prevention

I don't mind at all, I am still learning SP, so the more errors I make, the more I learn. :up:
I did not know you could use RequestFrame instead of SDKHook, that will be good to know for later.
...
Forum: Plugins 10-12-2015, 09:33
Replies: 12
Views: 8,346
Posted By Boonie
Re: [TF2] Tele-Trap Prevention

I couldn't replicate that error for some reason, but It should be fixed.
Forum: Scripting 09-24-2015, 10:27
Replies: 0
Views: 378
Posted By Boonie
Block building blueprint?

Is is possible when you pull out your building (and it shows the blue building blueprint), are you able to block that so it displays the red x (like when you build under something too low?) thus...
Forum: Scripting 09-23-2015, 11:36
Replies: 4
Views: 719
Posted By Boonie
Change teleporter output height?

Is there a way to change the height of which you come out of the teleporter? I know I can post hook player_teleported and then teleport the player up or down. But, is there an easier way. I looked...
Forum: Source Servers (SRCDS) 09-21-2015, 06:00
Replies: 1
Views: 558
Posted By Boonie
FastDL Host?

So, I was thinking of setting up a FastDL host. People would pay a small amount, and get an ftp account where they can upload their content (maps/skins/etc).
There would be multiple servers, so it...
Forum: Plugins 09-21-2015, 05:01
Replies: 12
Views: 8,346
Posted By Boonie
Re: [TF2] Tele-Trap Prevention

Updated, should work now.
Forum: Scripting 09-21-2015, 04:56
Replies: 8
Views: 2,858
Posted By Boonie
Re: OnEntityCreated check owner

That worked, thanks.
Showing results 1 to 25 of 62

 
Forum Jump

All times are GMT -4. The time now is 16:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode