AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Squid Games: Traffic light round (https://forums.alliedmods.net/showthread.php?t=338397)

JusTGo 07-02-2022 07:41

Squid Games: Traffic light round
 
2 Attachment(s)
Squid Games: Traffic light round



Description:
A mod that replicates Traffic light game from Squid games, This is a part of a bigger private mod I was working on, I decided to release this part, If you have any feedbacks post them below.

Credits:
ultraibolya for the doll model
Hedgehog Fog for reporting bugs and helping with code related issues.

Requirements:
Amxmodx +1.9.0
ReGameDLL & ReAPI

Installation:
1 - Extract all the resources in your cstrike folder
2 - Compile the plugin locally and install it

The plugin will not work unless you have the map and resources installed.

Changelog:
Code:

        Changelog:
        * "1.0.1"
            - Used get_mapname instead of MapName from newer amx version.
            - Fixed red wall not getting removed.
            - Improved how the shooting sound works.
            - Refactored code a bit.
        * "1.0.2"
            - Added round end detection, now when all players cross to the finish line the round ends.

Servers running this plugin:
IP: 185.91.116.39:27027
https://www.gametracker.com/search/c...l&sort=&order=

JusTGo 07-03-2022 13:10

Re: Squid Games: Traffic light round
 
Reserved.

If someone runs this mod on his server, or need help to setup the mod feel free to message me will be happy to check it out.

Hedgehog Fog 07-03-2022 19:56

Re: Squid Games: Traffic light round
 
I've added this mod to my server. Thanks for sharing!

JusTGo 07-04-2022 04:35

Re: Squid Games: Traffic light round
 
Quote:

Originally Posted by Hedgehog Fog (Post 2783010)
I've added this mod to my server. Thanks for sharing!

You're welcome, Is it a public server? If yes, can you share your server IP? Here or in a DM works :D

Hedgehog Fog 07-04-2022 07:54

Re: Squid Games: Traffic light round
 
Quote:

Originally Posted by JusTGo (Post 2783022)
You're welcome, Is it a public server? If yes, can you share your server IP? Here or in a DM works :D

Sure!

Server IP: 185.91.116.39:27027
Dicord: https://discord.gg/Vp2QJUCKtc

P.S: There is a problem with MapName constant, it probably should be defined somewhere. :wink:

JusTGo 07-04-2022 09:43

Re: Squid Games: Traffic light round
 
Quote:

Originally Posted by Hedgehog Fog (Post 2783029)
Sure!

Server IP: 185.91.116.39:27027
Dicord: https://discord.gg/Vp2QJUCKtc

P.S: There is a problem with MapName constant, it probably should be defined somewhere. :wink:

Thanks for sharing!


MapName constant is already defined in amx1.9+ or it's probably only amx1.10, not sure

amxconst.inc

PHP Code:

/**
 * Current map name
 */
public stock const MapName[MAX_MAPNAME_LENGTH]; 


JusTGo 07-04-2022 16:22

Re: Squid Games: Traffic light round
 
Thanks to Hedgehog Fog for reporting some bugs.

Updated:

Code:

* "1.0.1"
            - Used get_mapname instead of MapName from newer amx version.
            - Fixed red wall not getting removed.
            - Improved how the shooting sound works.
            - Refactored code a bit.


Hedgehog Fog 07-04-2022 18:07

Re: Squid Games: Traffic light round
 
Use Ham_BodyTarget to get the gun position, pev_origin doesn't work for brush entities:
PHP Code:

ExecuteHamB(Ham_BodyTargetent0gGunOrigin); 


JusTGo 07-07-2022 11:02

Re: Squid Games: Traffic light round
 
Quote:

Originally Posted by Hedgehog Fog (Post 2783062)
Use Ham_BodyTarget to get the gun position, pev_origin doesn't work for brush entities:
PHP Code:

ExecuteHamB(Ham_BodyTargetent0gGunOrigin); 


Thanks for the suggestion, Though I'm not sure what difference does Ham_BodyTarget makes here? The current method seems to work

JusTGo 07-10-2022 03:58

Re: Squid Games: Traffic light round
 
Updated:

Code:

        * "1.0.2"
            - Added round end detection, now when all players cross to the finish line the round ends.



All times are GMT -4. The time now is 17:59.

Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.