Raised This Month: $7 Target: $400
 1% 

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: HamletEagle
Forum: Unapproved/Old Plugins 03-09-2024, 04:57
Replies: 21
Views: 15,944
Posted By HamletEagle
Re: [Precache X] 512 Limit Precache Fix

Supporting HLDS is a must.
Supporting both HLDS and ReHLDS is fine.
Supporting only ReHLDS is not okay in most cases. The only exception when a ReHLDS-only plugin is acceptable, in my opinion, is...
Forum: Code Snippets/Tutorials 02-11-2024, 06:40
Replies: 5
Views: 366
Posted By HamletEagle
Re: [CS] CS 1.5 (Retro) Knife

Please do not use CurWeapon to set weapon models. Use Ham_Item_Deploy.

To make it work with bots, look into RegisterHamFromEntity and provide a bot id, or if you are using amxx 1.9+, there are two...
Forum: Code Snippets/Tutorials 02-08-2024, 08:56
Replies: 38
Views: 19,310
Posted By HamletEagle
Re: ROG - A better random origin generator[NO HIDDEN ZONES UPDATE]

The latest version is attached in the main post.

@Natsheh, I do not have time to check your file, but I find it contradictory that you claim it is optimized and at the same time claim it takes a...
Forum: Scripting Help 02-02-2024, 05:12
Replies: 13
Views: 717
Posted By HamletEagle
Re: Giving a gift after a bomb explosion

Absolutely. The below resources may be helpful:
1. How to detect bomb explosion, defusion, and other events? https://forums.alliedmods.net/showthread.php?t=40164
2. How to pick a random terrorist?...
Forum: Unapproved/Old Plugins 01-26-2024, 08:54
Replies: 4
Views: 758
Posted By HamletEagle
Re: Half-Life | Bullet Damage

This is way too simple and basic to be approved. Please check the rules: https://forums.alliedmods.net/showthread.php?t=21956

I will have to unapprove this for now, but if you decide to make it...
Forum: Unapproved/Old Plugins 01-26-2024, 08:53
Replies: 3
Views: 366
Posted By HamletEagle
Re: Half-Life | Reset Score

This is way too simple and basic to be approved. Please check the rules: https://forums.alliedmods.net/showthread.php?t=21956

I will have to unapprove this for now, but if you decide to make it...
Forum: Scripting Help 12-26-2023, 08:16
Replies: 2
Views: 413
Posted By HamletEagle
Re: Get player and weapon id in WeapPickup Event

Player indexes can be from 1 to 32 (assuming a 32-slot server). Indexing the Weapon array with id = 32 will cause an index out-of-bounds error. Weapon should have size 33, not 32.
Forum: Scripting Help 12-20-2023, 03:09
Replies: 14
Views: 1,742
Posted By HamletEagle
Re: Float Cvar Tag mismatch Warning

Most of what you said is correct. I do not necessarily see the point of Safe_Float because the admin can do amx_cvar right after and change the value.

Also, the same clamping logic (using clamp)...
Forum: Scripting Help 12-18-2023, 10:17
Replies: 14
Views: 1,742
Posted By HamletEagle
Re: Float Cvar Tag mismatch Warning

Sure, but in 1.8.2 you don't have a way of doing it without orpheu/okapi so if you don't know how to use them or don't want to, guarding against the input when getting the cvar value is the...
Forum: Scripting Help 12-16-2023, 09:46
Replies: 14
Views: 1,742
Posted By HamletEagle
Re: Float Cvar Tag mismatch Warning

@101, you missed the point of what Bugsy suggested. floatclamp is not supposed to change the value of the cvar, just the variable that stores the cvar value.

Maybe this makes it easier to see:
...
Forum: Scripting Help 12-13-2023, 14:05
Replies: 26
Views: 2,538
Posted By HamletEagle
Re: Hamas Alert v1.1 Plugin For Counter Strike 1.6

This is whataboutism. He created a plugin for purpose A. You ask "But why not also purpose B"? Simple, because this plugin and topic are about purpose A, not B. If you want a plugin for B, create it...
Forum: Scripting Help 12-10-2023, 06:25
Replies: 25
Views: 2,606
Posted By HamletEagle
Re: Question about native : get_players

I find it funny that you linked to the compiler on github but didn't consider searching in the same place for the source code of get_pcvar_num. The full source code is available in the link you...
Forum: Scripting Help 12-09-2023, 08:07
Replies: 25
Views: 2,606
Posted By HamletEagle
Re: Question about native : get_players

From where did you get this information? It is not correct. Some natives will give you existing data (if they are simple getters), and some natives will do some work before returning a result. This...
Forum: Scripting Help 12-09-2023, 06:11
Replies: 25
Views: 2,606
Posted By HamletEagle
Re: Question about native : get_players

I think that caching things like is_user_alive, is_use_connected, etc is pointless most of the time.

1. You are not gaining any tangible speed-up because calling those natives directly is already...
Forum: Scripting Help 12-07-2023, 11:33
Replies: 25
Views: 2,606
Posted By HamletEagle
Re: Question about native : get_players

get_players will check every time, it does not use cached data. Using cached data would not make much sense, as different calls to get_players could specify different flags so the native would still...
Forum: New Plugin Submissions 11-24-2023, 05:22
Replies: 308
Views: 120,229
Posted By HamletEagle
Re: Entity Resources Replacement[ V 1.4 ]

Can you please try this version of the plugin? https://forums.alliedmods.net/showpost.php?p=2714910&postcount=272

Please let me know if you encounter any issues. If not, I think it is past time I...
Forum: New Plugin Submissions 10-23-2023, 11:39
Replies: 308
Views: 120,229
Posted By HamletEagle
Re: Entity Resources Replacement[ V 1.4 ]

I know you probably just misspoke, but to avoid any confusion: ReAPI has nothing to do with this. New signatures are required for the game binary itself (ReGameDLL). Alternatively, this plugin can be...
Forum: New Plugin Submissions 10-22-2023, 11:43
Replies: 308
Views: 120,229
Posted By HamletEagle
Re: Entity Resources Replacement[ V 1.4 ]

This plugin uses orpheu, therefore it can't be directly used on a ReGameDLL server.
Forum: Scripting Help 04-02-2023, 05:21
Replies: 3
Views: 638
Posted By HamletEagle
Re: native "get_user_weapon"

Post the full error log. You may need to ensure that idattacker is a player before calling get_user_weapon.
Forum: Scripting Help 04-02-2023, 05:20
Replies: 6
Views: 684
Posted By HamletEagle
Re: grenade miss check

How do you define a miss? For example, if we are talking about he grenade, is it a miss if the grenade does not damage anyone or is it a miss if the grenade does not directly hit (touch) a player?
Forum: Scripting Help 01-17-2023, 04:24
Replies: 12
Views: 1,553
Posted By HamletEagle
Re: Remove punchangle

Well, it is obvious that your reply is from chatgpt. Lying about it makes you look much much much worse than simply admitting that you used chatgpt. It isn't a big deal, no reason to be dishonest...
Forum: Scripting Help 01-11-2023, 07:19
Replies: 7
Views: 1,252
Posted By HamletEagle
Re: Set origin entity to ground

Read the notes to understand how the function works:
Forum: Scripting Help 01-10-2023, 12:26
Replies: 9
Views: 1,099
Posted By HamletEagle
Re: Compiler shows 'loose indentation' despite code being ordered

for(...)
statement


is valid from the point of view of the compiler. However, as mentioned above, it is not a great idea.

A more readable version is:

for(...)
{
Forum: Module Coding 12-28-2022, 08:35
Replies: 28
Views: 15,659
Posted By HamletEagle
Re: [HELP] Writing a module hooking CBasePlayer::SetAnimation

Not everyone uses regamedll and rehlds. If you do, great. But don't assume everyone has the same exact setup. It is foolish to claim there is no need for this module.
Forum: New Plugin Submissions 12-17-2022, 09:51
Replies: 120
Views: 62,092
Posted By HamletEagle
Re: Bomb Status [ V 1.7 ]

This is actually a very clever idea. We probably need to test before declaring the method failproof, but it does sound good.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 23:34.


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