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

Op4 Deagle Laser Sight


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 12-10-2022 , 11:59   Op4 Deagle Laser Sight
Reply With Quote #1

Hello, I know Opposing Force DM and CTF got some nasty bugs but I got some of them fixed. What really annoys me is how those Desert Eagles don't initially come with Laser Sight on. I don't know if there is a way to create a simple AMXX plugin to prevent my players - especially my bots from avoiding using Deagle Eagle with Laser Off. I'm not sure how to make my bots for Op4CTF mode toggle Laser Sight on, but is there another way in order for my bots coded in C++ to toggle Laser automatically and help me, please?
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster
RoboCop is offline
Send a message via Skype™ to RoboCop
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-14-2022 , 08:14   Re: Op4 Deagle Laser Sight
Reply With Quote #2

Amxx can do some of this, but why not do it at the metamod level?
Path: amxmodx/data/gamedata/common.games/entities.games/gearbox/offsets-ceagle.txt has much of the makings to do whatever you want.

Great example of how to with fast shotgun reload plugin.
__________________

Last edited by DJEarthQuake; 12-19-2022 at 13:27. Reason: Abbreviate and reformat post.
DJEarthQuake is offline
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 12-14-2022 , 10:58   Re: Op4 Deagle Laser Sight
Reply With Quote #3

Hmm well, it doesn't appear this plugin works when I compile it from AMXX 1.10-dev package:-
https://github.com/djearthquake/amxx...t_sight_on.sma

Also, the bots that I'm using is called RCBot:
https://github.com/APGRoboCop/rcbotold
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster
RoboCop is offline
Send a message via Skype™ to RoboCop
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-14-2022 , 12:30   Re: Op4 Deagle Laser Sight
Reply With Quote #4

Sweet always looking for new bots. I compiled SMA on Amxx 1.10. Maybe a bracket is missing from the copy/paste?
__________________

Last edited by DJEarthQuake; 12-14-2022 at 12:34.
DJEarthQuake is offline
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 12-14-2022 , 16:19   Re: Op4 Deagle Laser Sight
Reply With Quote #5

I'm not sure the compiler didn't gave me errors nor warnings.
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster
RoboCop is offline
Send a message via Skype™ to RoboCop
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-14-2022 , 21:45   Re: Op4 Deagle Laser Sight
Reply With Quote #6

Didn't the RedDot used to go on by default before an update or a cvar? I remember they used to be on a lot more too but do not miss it.
I did make some adjustments and will update script.
__________________

Last edited by DJEarthQuake; 12-19-2022 at 13:27.
DJEarthQuake is offline
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 12-15-2022 , 10:07   Re: Op4 Deagle Laser Sight
Reply With Quote #7

Oh btw I've recompiled and modified JK-Botti as v1.44-APG as I had to increase the respawn delay as spawning the bots too quickly and too suddenly causes the server to crash with the error "Tried to write to uninitialized sizebuf_t"

https://github.com/APGRoboCop/jk_bot...60fca89e9d8701
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster
RoboCop is offline
Send a message via Skype™ to RoboCop
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-15-2022 , 11:38   Re: Op4 Deagle Laser Sight
Reply With Quote #8

I've updated the script and have little to no issues. Use it and other resources here like other scripts to get what you need. Best of luck.
__________________
DJEarthQuake is offline
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 12-15-2022 , 13:04   Re: Op4 Deagle Laser Sight
Reply With Quote #9

Well so far it appears to have some problems like giving me a max of 200 rounds instead of 36 rounds for the .357 max ammo count, and my compiler gave me this error:-

357_bot_sight_on.sma(23) : warning 203: symbol is never used: "SzBotAlias"

The Error logs shown me this also:-

L 12/15/2022 - 22:48:18: [AMXX] Displaying debug trace (plugin "357_bot_sight_on.amxx", version "12-12-22")
L 12/15/2022 - 22:48:18: [AMXX] Run time error 4: index out of bounds
L 12/15/2022 - 22:48:18: [AMXX] [0] 357_bot_sight_on.sma::Ham_EagleSecondaryAttac k (line 51)
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster

Last edited by RoboCop; 12-15-2022 at 18:40.
RoboCop is offline
Send a message via Skype™ to RoboCop
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-15-2022 , 18:58   Re: Op4 Deagle Laser Sight
Reply With Quote #10

I just threw that script out and remade it entirely.
__________________

Last edited by DJEarthQuake; 12-19-2022 at 13:25.
DJEarthQuake 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 16:54.


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