Raised This Month: $ Target: $400
 0% 

Squid Games: Traffic light round


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay       
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-02-2022 , 08:41   Squid Games: Traffic light round
Reply With Quote #1

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=
Attached Files
File Type: zip cstrike.zip (2.06 MB, 502 views)
File Type: sma Get Plugin or Get Source (mg_trafficlight.sma - 563 views - 17.0 KB)
__________________

Last edited by JusTGo; 07-10-2022 at 05:03.
JusTGo is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-03-2022 , 14:10   Re: Squid Games: Traffic light round
Reply With Quote #2

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.
__________________
JusTGo is offline
Hedgehog Fog
Senior Member
Join Date: Jun 2010
Location: Ukraine
Old 07-03-2022 , 20:56   Re: Squid Games: Traffic light round
Reply With Quote #3

I've added this mod to my server. Thanks for sharing!
__________________

❄️ CS Snow Wars - Mod based on snowballs fights
🧟 CS Zombie Panic - A port of HL Zombie Panic!
🎃 CS Halloween Mod - Completely new gamemode for Halloween Holidays
📦 AMXXPack - CLI and build system for amxx projects
🔧 Custom Entities API - API to register custom entities
Hedgehog Fog is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-04-2022 , 05:35   Re: Squid Games: Traffic light round
Reply With Quote #4

Quote:
Originally Posted by Hedgehog Fog View Post
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
__________________
JusTGo is offline
Hedgehog Fog
Senior Member
Join Date: Jun 2010
Location: Ukraine
Old 07-04-2022 , 08:54   Re: Squid Games: Traffic light round
Reply With Quote #5

Quote:
Originally Posted by JusTGo View Post
You're welcome, Is it a public server? If yes, can you share your server IP? Here or in a DM works
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.
__________________

❄️ CS Snow Wars - Mod based on snowballs fights
🧟 CS Zombie Panic - A port of HL Zombie Panic!
🎃 CS Halloween Mod - Completely new gamemode for Halloween Holidays
📦 AMXXPack - CLI and build system for amxx projects
🔧 Custom Entities API - API to register custom entities

Last edited by Hedgehog Fog; 07-04-2022 at 09:06.
Hedgehog Fog is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-04-2022 , 10:43   Re: Squid Games: Traffic light round
Reply With Quote #6

Quote:
Originally Posted by Hedgehog Fog View Post
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.
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]; 
__________________

Last edited by JusTGo; 07-04-2022 at 10:44.
JusTGo is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-04-2022 , 17:22   Re: Squid Games: Traffic light round
Reply With Quote #7

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.
__________________
JusTGo is offline
Hedgehog Fog
Senior Member
Join Date: Jun 2010
Location: Ukraine
Old 07-04-2022 , 19:07   Re: Squid Games: Traffic light round
Reply With Quote #8

Use Ham_BodyTarget to get the gun position, pev_origin doesn't work for brush entities:
PHP Code:
ExecuteHamB(Ham_BodyTargetent0gGunOrigin); 
__________________

❄️ CS Snow Wars - Mod based on snowballs fights
🧟 CS Zombie Panic - A port of HL Zombie Panic!
🎃 CS Halloween Mod - Completely new gamemode for Halloween Holidays
📦 AMXXPack - CLI and build system for amxx projects
🔧 Custom Entities API - API to register custom entities

Last edited by Hedgehog Fog; 07-04-2022 at 21:21.
Hedgehog Fog is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-07-2022 , 12:02   Re: Squid Games: Traffic light round
Reply With Quote #9

Quote:
Originally Posted by Hedgehog Fog View Post
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 is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-10-2022 , 04:58   Re: Squid Games: Traffic light round
Reply With Quote #10

Updated:

Code:
        * "1.0.2"
            - Added round end detection, now when all players cross to the finish line the round ends.
__________________
JusTGo is offline
Reply


Thread Tools
Display Modes

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 12:18.


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