AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S/CS:GO] SM:Conquest - Conquer flags on maps to win (Version 1.4.1, 19.11.2013) (https://forums.alliedmods.net/showthread.php?t=154354)

forepost 04-12-2011 05:32

Re: [CS:S] SM:Conquest - Conquer flags on maps to win (1.0)
 
1. As I wrote above - adding "item_assaultsuit" "1" to smconquest_classes.cfg lead to server crash. Better to use another plugin te get kevlar. But I did not tried "item_kevlar" "1".

2. Good flag's location description of course necessary.But I mean another - the text TABLE on the middle bottom of the screen. After installing client's side HUD icons she is not more necessary. In the previous version of the mod (L.Duke) it was possible to switch table off using say !menu ---> switch off icons. There were 4 options (in say !menu) - 1. Choose class; 2. Buy items; 3. Display settings (to switch off score or text table); 4. Help (showing motd).

EGood 04-12-2011 06:11

Re: [CS:S] SM:Conquest - Conquer flags on maps to win (1.0)
 
Thanks!!! good job !!!!!!!!

KawMAN 04-12-2011 09:17

Re: [CS:S] SM:Conquest - Conquer flags on maps to win (1.0)
 
2 Attachment(s)
Open smconquest_classes.sp
Find
Code:

else if(StrEqual(sWeapon, "weapon_smokegrenade", false))
        {
            g_iPlayerGrenade[client][GRENADE_SMOKE] = GetArrayCell(hWeaponList, i+1);
            if(g_iPlayerGrenade[client][GRENADE_SMOKE] > 0)
                Client_GiveWeapon(client, sWeapon, false);
        }

After add
Code:

        else if(StrEqual(sWeapon, "item_vesthelm", false))
        {
            SetEntProp(client, Prop_Send, "m_ArmorValue", GetArrayCell(hWeaponList, i+1));
            SetEntProp(client, Prop_Send, "m_bHasHelmet", 1);
        }
        else if(StrEqual(sWeapon, "item_vest", false))
        {
            SetEntProp(client, Prop_Send, "m_ArmorValue", GetArrayCell(hWeaponList, i+1));
        }
        else if(StrEqual(sWeapon, "health", false))
        {
            Entity_SetHealth(client, GetArrayCell(hWeaponList, i+1));
        }

Compile and upload to server, after that you can add item_vest , item_vesthelm and health to classes config
example:
Code:

"PlayerClasses"
{
    "Marksman" // General Classname
    {
        "limit"    "1" // How many players in each team are allowed to use this class?
        "AWP/USP/smoke" // Different weapon set name
        {
            "weapon_awp" "30" // weapon name and how many bullets in second clip?
            "weapon_usp" "120"
            "weapon_smokegrenade" "1"
            "item_vest" "50"
            "health" "30"
        }
        "Autosniper"
        {
            "price" "8000"
            "weapon_g3sg1" "120"
            "weapon_usp" "120"
            "weapon_smokegrenade" "1"
            "item_vesthelm" "125"
        }


forepost 04-12-2011 10:01

Re: [CS:S] SM:Conquest - Conquer flags on maps to win (1.0)
 
KawMAN, thank you. Will try this way. Hope it will compile without errors.

bandit 04-12-2011 11:58

Re: [CS:S] SM:Conquest - Conquer flags on maps to win (1.0)
 
Nice job..
If it works,please post it here for everyone else to use
Thanks KawMan

I also had a request to add speed for the classes.
Can you post that as well?

forepost 04-12-2011 12:47

Re: [CS:S] SM:Conquest - Conquer flags on maps to win (1.0)
 
Suddenly, do not want to compile without any modification, many errors.

rediem 04-12-2011 13:07

Re: [CS:S] SM:Conquest - Conquer flags on maps to win (1.0)
 
Damn, why does it has to crash all the time when people play ;( Fix pls

KawMAN 04-12-2011 14:29

Re: [CS:S] SM:Conquest - Conquer flags on maps to win (1.0)
 
Try to install SDKHooks 2 Beta, all plugins writed for SDKHooks 1.x should work on 2

forepost 04-12-2011 15:40

Re: [CS:S] SM:Conquest - Conquer flags on maps to win (1.0)
 
KawMAN, thank you very much for compiled plugin!

Note: with your plugin got this -

L 04/12/2011 - 23:15:19: [SM] Displaying call stack trace for plugin "smconquest.smx":
L 04/12/2011 - 23:15:19: [SM] [0] Line 2125, D:\Serwery\wsciekle\SourceMOD\addons\sourcemo d\scripting\include\smlib/clients.inc::Client_SetScreenOverlayForAll()
L 04/12/2011 - 23:15:19: [SM] [1] Line 592, smconquest.sp::Event_OnRoundStart()

But got armor in game.

AND - weapon in game NOT SHOOTING! So funny! ;-)
Not working, back to not modified version

But, I confirm that server crash while peoples playing approx. every 20-40 minutes. (Installed MM:S 1.8.5 & SM 1.4.0 dev)
Will try new compiled + SDKHooks 2 Beta.

Peace-Maker 04-12-2011 17:32

Re: [CS:S] SM:Conquest - Conquer flags on maps to win (1.0)
 
Did anyone attach gdb to the process on linux to get a backtrace of that crash? You may want to compare the offsets for Weapon_Drop, Weapon_Switch, PostThink and StartTouch in your sdkhooks.games.txt with the ones listed in berni's awesome tool. If you're using a snapshot release of sourcemod, you should download the latest snapshot and overwrite the gamedata folder.

You really want that health and speed setting? Those classes are meant for weapon selection only initially.

How about adding that hint box display option into the clientpref !settings menu?
Adding a enable cvar would require a mapchange anyways due to the model downloads, so the way KawMAN described would do the job the same way. Anyone really needs that cvar?

Sorry for responding that late.

Quote:

Originally Posted by KawMAN (Post 1446408)
I was developing same plugin (even with same flags), have some 70%

You've got anything to add? You may still want to share your plugin or merge any missing features you've already done? I'd love to see your solution, since i've got some really nasty nested arrays there;)

P.S.: You need to fix your smlib install as stated in the first post to get your compiled plugin working ;)


All times are GMT -4. The time now is 12:05.

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