Absurd Minds

More than 100 years without a motto.
It is currently 25 Nov 2024 01:58

All times are UTC-04:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 11 Feb 2015 19:45 
Offline
User avatar

Joined: 26 Sep 2010 22:53
Posts: 3084
Location: T͚̜͙͚̠̦ͬͧ̐ͬĥ͙͉͙̥̹̝͖ͮ̒̒̋ͤ̄eͭͫͭ ̥̤͔̽ͥ͐ͦͦͣỊ̒̎n̖͚̘͇̬̟te̻̥͇̳̲̲͊̂͆ͩr̝̯̦̼͔̖̻̽n͙ͬ͆̎e͔̰͎ͩ͋̀̚t̮̞͎̓ͨ́
I'm doing some research and learning how to make changes to source mod files. I am taking requests for the information you want me to find. Sourcemod is surprisingly easy to use, much to the inverse of what I was told. It is very similar to AMXmod. Actually coding is not easy if you have no coding background (me); however, it is easy to make small changes to other peoples mods.

How to turn off pistols, on non-"pistol only" modes.

Go to SCRIPTING > multi1v1.sp
Open the file
Search for the line 175 which says:
Code:
    g_hPistolBehavior = CreateConVar("sm_multi1v1_pistol_behavior", "0", "Behavior 0=always give the pistol the player selected, 1=never give pistols on non-pistol rounds, 2=always give sm_multi1v1_default_pistol on non-pistol rounds 3=give pistol choice on rifle/pistol rounds, but use sm_multi1v1_default_pistol on awp rounds");
Replace the first "0" with "1"

Click here to find Splewis' 1v1 mod

_________________
Honey Badgers have very tough skin. The skin is very thick and rubbery, which is almost impervious to arrow and spears. Even a blow from machete can't scratch the skin. The skin protects them from bites.


Top
   
PostPosted: 11 Feb 2015 21:12 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
That config actually exists in the config file. I changed it earlier tonight and it should be working like that. Is it not?

EDIT: Actually right now I have it set to give a pistol on rifle rounds but not on awp rounds. Should I change it so you don't have a pistol on rifle rounds too?

(Just for your information, the line you point to defines the cvar, and sets the default to 0. Changing it to 1 simply changes the default setting to 1. I defined the cvar as 1 in the config file instead of simply changing the default value and recompiling the plugin.)

_________________
Server list
Donate


Top
   
PostPosted: 11 Feb 2015 21:17 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
In terms of a request, I want you to figure out how I can make a scout round without losing the knife round.

This is what I've tried so far.

_________________
Server list
Donate


Top
   
PostPosted: 12 Feb 2015 18:25 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
Quote:
In terms of a request, I want you to figure out how I can make a scout round without losing the knife round.

This is what I've tried so far.
Hey, I figured it out! I can now add whatever type of round I want!
Code:
#include <sourcemod>
#include <smlib>
#include "include/multi1v1.inc"
#include "multi1v1/version.sp"

#pragma semicolon 1

public Plugin:myinfo = {
    name = "CS:GO Multi1v1: knife round addon",
    author = "splewis",
    description = "Adds an unranked knife round-type",
    version = PLUGIN_VERSION,
    url = "https://github.com/splewis/csgo-multi-1v1"
};

public void Multi1v1_OnRoundTypesAdded() {
    Multi1v1_AddRoundType("Knife", "knife", KnifeHandler, Multi1v1_NullChoiceMenu, true, false);
    Multi1v1_AddRoundType("Scout", "ssg08", ScoutHandler, Multi1v1_NullChoiceMenu, true,false);
}

public void KnifeHandler(int client) {
    Client_RemoveAllWeapons(client, "", true);
    Client_SetArmor(client, 100);
    GivePlayerItem(client, "weapon_knife");
}

public void ScoutHandler(int client) {
    Client_RemoveAllWeapons(client, "", true);
    Client_SetArmor(client, 100);
    GivePlayerItem(client, "weapon_ssg08");
}

_________________
Server list
Donate


Top
   
PostPosted: 12 Feb 2015 18:56 
Offline
User avatar

Joined: 26 Sep 2010 22:53
Posts: 3084
Location: T͚̜͙͚̠̦ͬͧ̐ͬĥ͙͉͙̥̹̝͖ͮ̒̒̋ͤ̄eͭͫͭ ̥̤͔̽ͥ͐ͦͦͣỊ̒̎n̖͚̘͇̬̟te̻̥͇̳̲̲͊̂͆ͩr̝̯̦̼͔̖̻̽n͙ͬ͆̎e͔̰͎ͩ͋̀̚t̮̞͎̓ͨ́
That's EXACTLY what I was going to do XD. I was going to search for awp rounds through the files. BTW scout rounds don't give you a knife currently. Just a scout.

_________________
Honey Badgers have very tough skin. The skin is very thick and rubbery, which is almost impervious to arrow and spears. Even a blow from machete can't scratch the skin. The skin protects them from bites.


Top
   
PostPosted: 12 Feb 2015 19:01 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
Should I give them a knife too

_________________
Server list
Donate


Top
   
PostPosted: 12 Feb 2015 19:06 
Offline
User avatar

Joined: 26 Sep 2010 22:53
Posts: 3084
Location: T͚̜͙͚̠̦ͬͧ̐ͬĥ͙͉͙̥̹̝͖ͮ̒̒̋ͤ̄eͭͫͭ ̥̤͔̽ͥ͐ͦͦͣỊ̒̎n̖͚̘͇̬̟te̻̥͇̳̲̲͊̂͆ͩr̝̯̦̼͔̖̻̽n͙ͬ͆̎e͔̰͎ͩ͋̀̚t̮̞͎̓ͨ́
Quote:
Should I give them a knife too
I'm indifferent. It just felt weird being forced to cycle through scopes to unscope

_________________
Honey Badgers have very tough skin. The skin is very thick and rubbery, which is almost impervious to arrow and spears. Even a blow from machete can't scratch the skin. The skin protects them from bites.


Top
   
PostPosted: 17 Feb 2015 11:08 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
I don't know what this means, but here is a suggestion:

https://forums.alliedmods.net/showpost. ... tcount=591

_________________
Server list
Donate


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC-04:00


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited