Raised This Month: $124 Target: $400
 31% 

Showing results 1 to 25 of 500
Search took 0.05 seconds.
Search: Posts Made By: HamletEagle
Forum: Scripting Help Yesterday, 13:57
Replies: 6
Views: 128
Posted By HamletEagle
Re: Changing sprite angle?

Scale with a negative value is mirroring so your idea should work, at least in theory.
Forum: Scripting Help 11-21-2020, 12:24
Replies: 5
Views: 195
Posted By HamletEagle
Re: enum conflict with arguments bug report

Go to github and open an issue, but I doubt it will get fixed (soon). In the meantime, a good way to avoid this is to prefix your enums with a designated letter or prefix: eDmg, eLastHit.
Forum: Scripting Help 11-18-2020, 15:34
Replies: 8
Views: 260
Posted By HamletEagle
Re: Invalid index 0 (count 0) help me fix it

Use ArrayPushString, not SetString. Or use ArrayResize to allocate space before calling ArraySetString.
Forum: Off-Topic 11-13-2020, 17:49
Replies: 74
Views: 12,936
Posted By HamletEagle
Re: Your favorite programming language?

You should probably spend more than 2 seconds reading a post. I wasn't saying it is or it isn't bad.
If pawn's simplicity is not the problem, then what is it?
Forum: Off-Topic 11-12-2020, 17:13
Replies: 74
Views: 12,936
Posted By HamletEagle
Re: Your favorite programming language?

They are probably saying it's bad because it is so simple and it lacks most of the bells and whistles from other languages.
Forum: Off-Topic 11-12-2020, 16:48
Replies: 9
Views: 655
Posted By HamletEagle
Re: Are AmXModX moderators still alive ?

yada yada forums bad yada yada
(I opened your thread btw)
Forum: Scripting Help 11-07-2020, 16:47
Replies: 15
Views: 666
Posted By HamletEagle
Re: Create Sprite Without Txt

Do you want to replace weapon-related hud sprites without preaching the corresponding .txt file?
Forum: Scripting Help 11-07-2020, 10:10
Replies: 7
Views: 257
Posted By HamletEagle
Re: Array Size

This "reason" doesn't make any sense to me. Just test your code, it's not hard and it's so much faster than waiting for someone else to test for you.
Make a little plugin with only the code you are...
Forum: Scripting Help 11-02-2020, 11:44
Replies: 3
Views: 198
Posted By HamletEagle
Re: [HELP] Change Duration of Smoke

Just to clear things up, you are not removing the world model, you are removing the grenade entity which has the w_ model. And if the entity is gone then it can't explode.
Forum: Scripting Help 11-02-2020, 11:42
Replies: 4
Views: 218
Posted By HamletEagle
Re: [HELP] Hook Custom Entity Being Destroyed

Won't work. Killed is not called. In CBreakable::TakeDamage, when health < 0 Die() is called instead.



Yes, check if the value retrieved from pev_classname is func_myent. Also check if the...
Forum: Scripting Help 11-02-2020, 01:37
Replies: 3
Views: 198
Posted By HamletEagle
Re: [HELP] Change Duration of Smoke

The smoke is created using a message(TE_SMOKE or something, can't check rn). You have to block the original message and send your own. This way you can customize the duration.
Forum: Scripting Help 11-02-2020, 01:34
Replies: 4
Views: 218
Posted By HamletEagle
Re: [HELP] Hook Custom Entity Being Destroyed

Create your entity as func_breakable and use set_pev pev_classne with your classname(func_myent).
Hook TakeDamage with func_breakable. Inside take_damage retrieve pev_classname and check against...
Forum: Scripting Help 10-31-2020, 16:35
Replies: 3
Views: 286
Posted By HamletEagle
Re: Orpheu Signature Help

What do you mean it doesn't work? The function is not found? It is found but your hook is never called?

Also, don't bump.
Forum: Scripting Help 10-29-2020, 08:34
Replies: 10
Views: 330
Posted By HamletEagle
Re: Unreachable code

Don't return from every single branch, it's completely useless here.

if code return else code return
return

is the same thing as
if code else code
return
Forum: Suggestions / Requests 10-29-2020, 08:33
Replies: 13
Views: 648
Posted By HamletEagle
Re: amxx decompiler

Recode the plugin, it's faster.
Forum: Scripting Help 10-24-2020, 13:54
Replies: 7
Views: 347
Posted By HamletEagle
Re: HUD remove/destroy

As I said, post the plugin. No one is going to waste time with an XY problem and there's no generic answer since a hud message is not permanent.
Forum: Scripting Help 10-24-2020, 03:51
Replies: 7
Views: 347
Posted By HamletEagle
Re: HUD remove/destroy

Post the plugin.
Forum: Scripting Help 10-23-2020, 07:51
Replies: 9
Views: 182
Posted By HamletEagle
Re: what's the problem?

Why would someone have the amxx and not the sma? The license forbids distributing plugins without source.
Forum: Scripting Help 10-22-2020, 12:07
Replies: 9
Views: 182
Posted By HamletEagle
Re: what's the problem?

Your protection is useless and can be broken in several ways. The only way to keep your plugin private is not to share it with anyone else.

One way to break it:
1. Hook set_fail_state with...
Forum: Scripting Help 10-21-2020, 03:36
Replies: 10
Views: 666
Posted By HamletEagle
Re: Which method is more efficient?

Thanks, I don't know what I would have done without you. Time to update my calendar.
Forum: Scripting Help 10-19-2020, 05:45
Replies: 10
Views: 666
Posted By HamletEagle
Re: Which method is more efficient?

With the first method, it is possible the algorithm will never converge or converge after a really long time(i.e all new generated points are inside the R\C area) which will end up being much slower...
Forum: Scripting Help 10-17-2020, 05:56
Replies: 2
Views: 314
Posted By HamletEagle
Re: get ground Z from an origin

getGroundOrigin(Float:origin[3])
{
new Float:traceEnd[3]
traceEnd = origin
traceEnd[2] = traceEnd[2] - 8192.0

new traceLineHandle = create_tr2()
engfunc(EngFunc_TraceLine, origin,...
Forum: Scripting Help 10-16-2020, 03:04
Replies: 10
Views: 666
Posted By HamletEagle
Re: Which method is more efficient?

This is generating points inside the rectangle R(x - radius, x + radius, y - radius, y + radius), not in a circle.

https://i.imgur.com/vgs4uBP.png




The second code is actually very clever....
Forum: Suggestions / Requests 09-29-2020, 03:39
Replies: 6
Views: 426
Posted By HamletEagle
Re: Check is Freezetime end ??

Yes. Check my Objective Reset plugin for an example, it has the ability to change round time/freeze time thru a command/native.
Forum: Scripting Help 09-23-2020, 05:12
Replies: 4
Views: 421
Posted By HamletEagle
Re: help finding all players that is on the bombsite

Search for func_bomb_target. If it is missing try info_bomb_target.
It's easy to check if you found the entity or not: check if the return value of find_ent_by_class is a valid entity(use...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 05:08.


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