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

Showing results 1 to 25 of 40
Search took 0.01 seconds.
Search: Posts Made By: glub
Forum: Scripting 12-04-2019, 15:51
Replies: 0
Views: 779
Posted By glub
env_lightglow won't update transparency according to coordinates

I'm attempting to stick a glowing light (env_lightglow (https://developer.valvesoftware.com/wiki/Env_lightglow)) on a player's head when they use night / motion / thermal vision.

What I am doing...
Forum: Scripting 10-06-2019, 20:25
Replies: 0
Views: 998
Posted By glub
Updating angles of an attached prop_dynamic with player's view angles

I'm trying to attach a dynamic_prop to spectating players so that they appear a a little ghost to players still alive.
I want the prop to follow its parent's eye angles so that when I look up, the...
Forum: Scripting 12-23-2015, 16:54
Replies: 5
Views: 1,214
Posted By glub
Re: SetParent not updating position

@Chdata: sorry! I actually used GetEdictFlags() not GetEntityFlag() as posted previously. I copy pasted from another thread but did not notice.

So SetEdictFlags() doesn't seem to change anything....
Forum: Scripting 12-23-2015, 15:17
Replies: 5
Views: 1,214
Posted By glub
Re: SetParent not updating position

@Neuro Toxin: the entity moves into position itself when it's parented, so it's not needed. SetParent already does that and it works.

@Dr. Greg House: thanks for the suggestion but it doesn't...
Forum: Scripting 12-22-2015, 21:51
Replies: 5
Views: 1,214
Posted By glub
SetParent not updating position

I'm trying to parent an entity to a player. The method I use here works fine for "prop_dynamic_override", but doesn't work with this special entity called "neo_ghost_retrieval_point" for some reason....
Forum: Plugins 11-27-2015, 20:46
Replies: 2,224
Views: 1,695,267
Posted By glub
Re: Advertisements 0.6 (Updated 2013/03/08)

The plugin doesn't work well with multiple server installations (ie. multiple advertisements.txt files). It always loads the default file, not the one specified in the convar.

I've attached my...
Forum: Scripting 11-18-2015, 23:48
Replies: 5
Views: 1,078
Posted By glub
Re: Modifying a model's "content_types" ($contents)

After looking at Asherkin's VPhysics (https://forums.alliedmods.net/showthread.php?t=136350?t=136350), I noticed this strange "MaterialIndex" in Phys_SetMaterialIndex()...
Forum: Scripting 11-05-2015, 18:48
Replies: 5
Views: 1,078
Posted By glub
Re: Modifying a model's "content_types" ($contents)

That's what confuses me. The prop_dynamic model cannot be a func_ladder at the same time since it's already a prop_dynamic classtype.

I didn't find a single word of information about how...
Forum: Scripting 11-05-2015, 13:06
Replies: 5
Views: 1,078
Posted By glub
Re: Modifying a model's "content_types" ($contents)

I have found this in the ladder.cpp of the Source SDK (https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/shared/func_ladder.cpp#L503)

const char...
Forum: Plugins 11-05-2015, 09:50
Replies: 86
Views: 52,914
Posted By glub
Re: [ANY] tEntDev v0.0.1 (2010-11-14)

Can anyone confirm that this PHP script still works?
All it generates is this:

"NetProps"
{
}
}
Not familiar with PHP. And idea? I did try changing all the -3 to -2, but nothing...
Forum: Scripting 11-05-2015, 07:03
Replies: 5
Views: 1,078
Posted By glub
Modifying a model's "content_types" ($contents)

Does anyone know the property to change in an entity to make it into a ladder, if there is any?

Compiling any model with this does make it into a ladder, as documented here...
Forum: Scripting 11-03-2015, 15:11
Replies: 2
Views: 520
Posted By glub
Re: Manipulating random number picking

GenerateRandomInt() changes the value of the global int "randomint", so I don't need to store the value inside the function, right?

I think my code works now, but I face a potential infinite loop...
Forum: Scripting 11-03-2015, 14:07
Replies: 2
Views: 520
Posted By glub
Manipulating random number picking

I'm generating a random integer, and I want to prevent too many consecutive picks for the same number over a period of time (10 seconds for now), spacing them out as much as possible with a timer.
...
Forum: Scripting 11-01-2015, 18:28
Replies: 12
Views: 2,431
Posted By glub
Re: Array of floats from KeyValues

Most of the time, the compiler is right in thinking I'm stupid... :(



Except we don't know where to stop incrementing the "i" variable, unless we do a first pass at counting the number of...
Forum: Scripting 11-01-2015, 14:41
Replies: 12
Views: 2,431
Posted By glub
Re: Array of floats from KeyValues

Thanks Miu! :D

I ended up with more or less the same thing but your code is of course much better. I'll keep my bad code for myself because it had some useless steps and poor logic. It sure looks...
Forum: Scripting 11-01-2015, 04:39
Replies: 12
Views: 2,431
Posted By glub
Re: Array of floats from KeyValues

After much consideration, I think I'll go back to KeyValues, since the file will be read only once at the start of the map. And it should be easier for me to handle.

Thanks Powerlord, but if I'm...
Forum: Scripting 10-31-2015, 15:00
Replies: 12
Views: 2,431
Posted By glub
Re: Array of floats from KeyValues

Thank you very much for the replies!

After reading your suggestions, I just realized that I might not even need to use a database at all, just a flat file? I don't intend to write anything to the...
Forum: Scripting 10-31-2015, 05:03
Replies: 12
Views: 2,431
Posted By glub
Array of floats from KeyValues

I want to retrieve a random set of coordinates (a Float[3]) from a KeyValues file, each time a player is about to spawn (to randomly spawn him in a predefined location).
The idea is to pick a random...
Forum: Scripting 10-14-2015, 18:42
Replies: 15
Views: 3,047
Posted By glub
Re: Alternative to CreateEntityByName()? Changing entity collision properties

Thanks for the suggestion friagram, it's working with
DispatchKeyValueVector(EntIndex, "Origin", clientorigin); :D
Forum: Scripting 10-13-2015, 15:03
Replies: 15
Views: 3,047
Posted By glub
Re: Alternative to CreateEntityByName()? Changing entity collision properties

There's still a small issue: TeleportEntity doesn't work.
I've spent the last 3 days testing everything possible, even using
SetEntPropVector(EntIndex, Prop_Data, "m_vecOrigin", clientorigin);...
Forum: Scripting 10-10-2015, 14:57
Replies: 15
Views: 3,047
Posted By glub
Re: Alternative to CreateEntityByName()? Changing entity collision properties

(O_O)

Well, I was about to post a follow-up to my comment, I just managed to set the collision group on the prop I spawned!

I was totally not expecting you to update the gamedata! I thought it...
Forum: Scripting 10-10-2015, 11:16
Replies: 15
Views: 3,047
Posted By glub
Re: Alternative to CreateEntityByName()? Changing entity collision properties

I knew asherkin or psychonic would end up saying something like this. The missing gamedata has plagued Neotokyo for years, it's really annoying. :/
But it can't be helped unfortunately and I won't...
Forum: Scripting 09-20-2015, 23:06
Replies: 15
Views: 3,047
Posted By glub
Re: Alternative to CreateEntityByName()? Changing entity collision properties

Thanks, I'll look into this.
I found this thread (https://forums.alliedmods.net/showthread.php?t=153888) too. However, as Asherkin and strontiumdog said in that thread...
Forum: Scripting 09-20-2015, 22:19
Replies: 15
Views: 3,047
Posted By glub
Re: Alternative to CreateEntityByName()? Changing entity collision properties

Thanks for the input guys! :)

Wouldn't AcceptEntityInput only work for the activator though, I need collisions disabled for all players on the server.
Also, since ent_fire addoutput...
Forum: Scripting 09-16-2015, 03:31
Replies: 15
Views: 3,047
Posted By glub
Alternative to CreateEntityByName()? Changing entity collision properties

Trying to change a spawned entity's properties (spawned via prop_physics_create and prop_dynamic_create for example) and make it not-collide with players.

I suppose that's done with KeyValues...
Showing results 1 to 25 of 40

 
Forum Jump

All times are GMT -4. The time now is 13:58.


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