Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 88
Search took 0.01 seconds.
Search: Posts Made By: Ethorbit
Forum: Scripting 10-15-2019, 22:11
Replies: 0
Views: 826
Posted By Ethorbit
TR_TraceHullFilterEx only hitting world

I'm trying to get prop_physics entities in a short radius from the player by using a TraceHull, but for some reason the TraceHull never finds anything even if I set the mins and maxs to a...
Forum: Scripting 01-05-2018, 13:51
Replies: 13
Views: 3,068
Posted By Ethorbit
Re: Detect if an NPC died with SDKHook?

This is the best method so far, but I wanted to check what npc class the player killed and I don't think I can use victim with entity_killed.
Edit: I defined the victim, but I am trying to get the...
Forum: Scripting 01-05-2018, 02:40
Replies: 13
Views: 3,068
Posted By Ethorbit
Re: Detect if an NPC died with SDKHook?

No, it did not, and it's giving me the same result.


public OnEntityCreated(entity)
{
SDKHook(entity, SDKHook_OnTakeDamage, OnTakeDamage);
}

public OnTakeDamage(victim, attacker,...
Forum: Scripting 01-04-2018, 23:13
Replies: 13
Views: 3,068
Posted By Ethorbit
Re: [Question] Detect if an NPC died with SDKHook?

Half-Life 2: Deathmatch (I don't think the game matters), although I am able to detect the health of the npc every time it is hit, my only issue right now is that it's returning very inaccurate...
Forum: Scripting 01-03-2018, 23:57
Replies: 13
Views: 3,068
Posted By Ethorbit
Detect if an NPC died with SDKHook?

I know you can see if a player died, but how would you know if an NPC died? I've been looking everywhere, I cannot find a way.

I don't want to use OnEntityDestroyed as I cannot use...
Forum: Plugin/Gameplay Ideas and Requests 12-30-2017, 18:41
Replies: 1
Views: 898
Posted By Ethorbit
Re: [Request][Paying $10] NPC Spawner

Updated description & increased price to $5 more.
Forum: Plugin/Gameplay Ideas and Requests 12-29-2017, 21:09
Replies: 1
Views: 898
Posted By Ethorbit
[Request][Paying $10] NPC Spawner (DONE)

What needs to be done:
On this map: https://www.dropbox.com/s/31ye9seuvlnaui3/zombies2.bsp?dl=0
There is an npc_zombie named "zombie1" and a template_maker that respawns this zombie. What I want is...
Forum: Scripting 12-28-2017, 06:19
Replies: 3
Views: 937
Posted By Ethorbit
Re: ReadFileLine isn't giving me the right result.

Thanks for the helpful information.



And thanks for the info & providing the code too.

That made my whole night easier, it works exactly as intended I honestly cannot thank you guys enough.
Forum: Scripting 12-28-2017, 04:00
Replies: 3
Views: 937
Posted By Ethorbit
ReadFileLine isn't giving me the right result.

So I'm trying to read from "data/phoneburnia/zombie1.txt"
Inside this text file are 2 lines that consist of 3 seperate numbers:

208.837997 87.651397 -189.968750
0.000000 359.000000 0.000000
...
Forum: Plugin/Gameplay Ideas and Requests 12-27-2017, 21:53
Replies: 1
Views: 778
Posted By Ethorbit
GetEntProp/DispatchKeyValue npc_template_maker support

Hello, I think adding npc_template_maker/npc_maker support for DispatchKeyValue and GetEntProp would be a really nice feature.



sm_dump_netprops netprops.txt
In the list I didn't really see...
Forum: Scripting 12-26-2017, 15:30
Replies: 8
Views: 1,614
Posted By Ethorbit
Re: Printing the targetname doesn't work.

Thanks! Targetname prints now.
Forum: Scripting 12-26-2017, 03:55
Replies: 8
Views: 1,614
Posted By Ethorbit
Re: Printing the targetname doesn't work.

I tried different things like:
DispatchKeyValue(entity, "Name", "ThisIsNew");
DispatchKeyValue(entity, "m_Name", "ThisIsNew");
GetEntPropString(entity, Prop_Data, "m_iName", targetname,...
Forum: Scripting 12-26-2017, 03:23
Replies: 8
Views: 1,614
Posted By Ethorbit
Re: Printing the targetname doesn't work.

I don't know what you mean.
This is what I did to change the targetname if that's what you mean:
DispatchKeyValue(entity, "m_iName", "ThisIsNew");
Forum: Scripting 12-26-2017, 02:18
Replies: 8
Views: 1,614
Posted By Ethorbit
Re: Printing the targetname doesn't work.

Whoops that was my old version.
Updated.
Forum: Scripting 12-25-2017, 23:37
Replies: 8
Views: 1,614
Posted By Ethorbit
Printing the targetname doesn't work.

After reading https://forums.alliedmods.net/showthread.php?t=77802&highlight=TARGETNAME?t=77802&highlight=TARGETNAME...
Forum: Scripting 12-22-2017, 21:07
Replies: 3
Views: 847
Posted By Ethorbit
Forum: Scripting 12-22-2017, 20:50
Replies: 3
Views: 847
Posted By Ethorbit
Re: Need help setting the position & removing an entity!

Still need help. Particularly here:
GetEntPropVector(entity, Prop_Send, "m_vecOrigin", npcposition);
GetEntPropVector(entity, Prop_Send, "m_angRotation", npcangle);
new...
Forum: Scripting 12-22-2017, 17:46
Replies: 3
Views: 847
Posted By Ethorbit
Need help setting the position & removing an entity!

Hello. I'm trying to replace all npcs that are/get created with an npc_zombie. So far, it will create an npc if an entity classname includes npc_ in it, but the npc it creates isn't at the position I...
Forum: Scripting 07-13-2017, 01:44
Replies: 1
Views: 671
Posted By Ethorbit
[Need help!] Checking disconnects not working with my script!

#include <sourcemod>

#include <sdktools>

public void OnClientDisconnect_Post(client)
{
DoThis(client);
}

public void DoThis(client) {
Forum: Scripting Help 07-13-2017, 01:22
Replies: 0
Views: 428
Posted By Ethorbit
checking disconnects not working with my script!

This was meant to go in sourcemod
Forum: Plugins 07-03-2017, 17:05
Replies: 47
Views: 50,096
Posted By Ethorbit
Re: [Any] Save player chat to file V1.2.1

I love this addon and so I made a few modifications and added 2 new features.
1. Player disconnects are logged
2. All player console commands are logged, ones that are console commands have...
Forum: Scripting 06-29-2017, 15:03
Replies: 4
Views: 1,326
Posted By Ethorbit
Re: Possible to hide game_text client side?

Ok, I was talking about an example of game_text with SetTransmit, but this will work too.
Forum: Scripting 06-28-2017, 18:55
Replies: 4
Views: 1,326
Posted By Ethorbit
Re: Possible to hide game_text client side?

Can I please have an example?
Forum: Scripting 06-28-2017, 15:05
Replies: 4
Views: 1,326
Posted By Ethorbit
Possible to hide game_text client side?

I want to know if there's a way to code a sourcemod plugin that declares a clientside command that has the ability to hide game_text to that user only, while still showing the game_text to everyone...
Forum: Plugin/Gameplay Ideas and Requests 06-27-2017, 23:01
Replies: 0
Views: 490
Posted By Ethorbit
[Request/Question] Possible to hide game_text client side?

I want to know if there's a way to code a sourcemod plugin that declares a clientside command that has the ability to hide game_text to that user only, while still showing the game_text to everyone...
Showing results 1 to 25 of 88

 
Forum Jump

All times are GMT -4. The time now is 22:28.


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