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

[Suggestions] AMXX 1.8.3


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-03-2017 , 10:12   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #51

As I said - I don't want to change their position. I'll rather have two messages on top of each other rather than on different coordinates.

@safetymoose: what do you mean by that? The set_dhudmessage function doesn't include any parameter for making it unreliable.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
safetymoose
Senior Member
Join Date: Feb 2015
Old 02-04-2017 , 03:30   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #52

The dhud message doesnt use channels, the last parameter is a bool for reliable type.

Quote:
set_dhudmessage( red = 0, green = 160, blue = 0, Float: x = -1.0, Float: y = 0.65, effects = 2, Float:fxtime = 6.0, Float:holdtime = 3.0, Float:fadeintime = 0.1, Float:fadeouttime = 1.5, bool:reliable = false )
safetymoose is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-04-2017 , 07:58   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #53

Where did you find that? The API doesn't says it has that parameter, neither does my amxmodx.inc file.

https://www.amxmodx.org/api/amxmodx/set_dhudmessage

Code:
native set_dhudmessage(red = 200, green = 100, blue = 0, Float:x = -1.0, Float:y = 0.35, effects = 0, Float:fxtime = 6.0, Float:holdtime = 12.0, Float:fadeintime = 0.1, Float:fadeouttime = 0.2);
__________________

Last edited by OciXCrom; 02-04-2017 at 07:58.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
safetymoose
Senior Member
Join Date: Feb 2015
Old 02-04-2017 , 13:45   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #54

https://forums.alliedmods.net/showthread.php?t=149210
safetymoose is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-04-2017 , 13:57   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #55

We are talking about 1.8.3 here. The one that's built in AMXX 1.8.3 doesn't have that parameter.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
safetymoose
Senior Member
Join Date: Feb 2015
Old 02-05-2017 , 04:42   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #56

Ah, well that's a miss on their part then. I'd recommend you use the stock from the .inc, just rename it to avoid conflicts with amxx 1.8.3. Sending 8 reliable messages is not a good idea, specially if you plan on doing it like a perm dhud message with often updates (like 1 sec, or 0.1 sec)...

Last edited by safetymoose; 02-06-2017 at 16:23.
safetymoose is offline
safetymoose
Senior Member
Join Date: Feb 2015
Old 02-06-2017 , 16:22   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #57

hmm, looking at the amxx 1.8.3 dhud message, i can see that they automatically send it as unreliable.

https://github.com/alliedmodders/amx....cpp#L239-L247

No need for any additional checks, you can safely send 8 dhud messages without any problems

Last edited by safetymoose; 02-06-2017 at 16:23.
safetymoose is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 02-07-2017 , 18:28   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #58

If we are still on the suggestion topic, adding the constants for all these values into the main amxmodx would be nice, but until then anyone has a list with all of them? i'd like to add them to an inc for my server

PHP Code:
const m_flNextPrimaryAttack
const m_flNextSecondaryAttack
etc 
__________________

Last edited by Depresie; 02-07-2017 at 18:30.
Depresie is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-07-2017 , 23:54   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #59

Quote:
Originally Posted by Depresie View Post
If we are still on the suggestion topic, adding the constants for all these values into the main amxmodx would be nice, but until then anyone has a list with all of them? i'd like to add them to an inc for my server

PHP Code:
const m_flNextPrimaryAttack
const m_flNextSecondaryAttack
etc 
New entdata natives are there for that:
https://github.com/alliedmodders/amx....inc#L560-L836

Also from a design standpoint of view adding a bunch of symbols into the global namespace like that is incredibly bad and will most likely break older plugins.
klippy is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-08-2017 , 01:55   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #60

Also, see Connor's cstrike_pdata include.
__________________
HamletEagle is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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