Shit maps night 7

Chat about various topics.

Re: Shit maps night 7

Postby Black_Stormy on Sat Nov 30, 2013 4:10 pm

I have 5 copies if anyone wants them
User avatar
Black_Stormy
May Contain Skills
May Contain Skills
 
Joined: Sun Nov 28, 2010 6:03 am
Location: Cairns, QLD, AUS

Re: Shit maps night 7

Postby ErikKiller on Sat Nov 30, 2013 6:30 pm

Black_Stormy wrote:I have 5 copies if anyone wants them

Why?
Image
Image
First rodeo? Use the Source SDK Documentation for reference!
User avatar
ErikKiller
May Contain Skills
May Contain Skills
 
Joined: Sun Sep 09, 2007 4:05 pm
Location: Estonia

Re: Shit maps night 7

Postby Black_Stormy on Sun Dec 01, 2013 3:57 am

Because I'm a fucking TOP BLOKE.

THAT'S why.
User avatar
Black_Stormy
May Contain Skills
May Contain Skills
 
Joined: Sun Nov 28, 2010 6:03 am
Location: Cairns, QLD, AUS

Re: Shit maps night 7

Postby Hollow on Sun Dec 01, 2013 4:20 am

Black_Stormy wrote:Because I'm a fucking TOP BLOKE.

THAT'S why.


User avatar
Hollow
Ubisoft/Monothetic
 
Joined: Thu Aug 14, 2008 12:38 pm
Location: London, UK

Re: Shit maps night 7

Postby Guessmyname on Mon Dec 02, 2013 9:02 pm

Haha excellent, never have I been more glad to lurk these forums. A map is underway :|b
User avatar
Guessmyname
1337 p0st3r
1337 p0st3r
 
Joined: Sun Mar 27, 2005 10:38 pm

Re: Shit maps night 7

Postby LordDz on Mon Dec 09, 2013 10:05 am

Some of you folks wondered how to do Vscript.
Vscript is actually very easy, it's like c++ except you don't get any help about what a function does except by testing it, no inputs what to call it with and almost zero information why something doesn't work.

So here we go.
Create a .nut file and place it in D:\Games\Steam\SteamApps\common\Counter-Strike Global Offensive\csgo\scripts\vscripts\insert_fancy_name_here\name_of_script.nut

Create some code for it! Here's mine which will change the model of everyone. Note that you need to have the models placed somewhere in your map, or they will not become precached and the game will cry (crash).
Code: Select all
function startGame()
{
    local ply = null;
    while (Entities.FindByModel(ply, "models/player/tm_phoenix.mdl") != null)
   {
        ply = Entities.FindByModel(ply, "models/player/tm_phoenix.mdl");
        //printl("A player with the terrorist model was found!");
   ply2.SetModel("models/props_docks/dockpole01a.mdl");
    }
   
   local ply2 = null;
   while (Entities.FindByModel(ply2, "models/player/ctm_st6.mdl") != null)
   {
        ply2 = Entities.FindByModel(ply2, "models/player/ctm_st6.mdl");
        printl("A player with the police model was found!");
   ply2.SetModel("models/chicken/chicken.mdl");
    }
}
startGame();


Yes, you need to use the Entities.FindByModel function because you can't search for players.

Now, make a map, draw it with all the colours of the sun and then place a logic_script name it something fancy and then click on Entity Scripts and add your script.
Image

On Outputs, add a OnUser1 targeting the script with the input RunScriptFile with a parameter override of insert_fancy_name/insert_script_name_here.nut
Image

Now whenever you want your function, just call the script with a fireUser1. So if you want more functions, just create more .nut files.

Here's a small shitty wait function I made.
Code: Select all
function awesomeTimer()
{
    local time = Time();
   local time2 = Time() + 50000;
   printl("time: " + time);
   while (time < time2)
   {
      time = time + 1;
   }
}


I've yet to been able to get the function RunScriptCode so for now I'm sticking with RunScriptFile.
Here are some useful links:
CS GO Functions
L4d2 Examples
L4d2 Mutations Examples
AlliedModders Forum
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: Shit maps night 7

Postby MaK on Tue Dec 10, 2013 7:49 pm

Mofuggah I already made a map months ago where all the player models are chickens based on that tutorial. Just letting people know so we don't get 100 chicken shit maps.


Really though I don't expect too many people to use vscript, there's so very little documentation on it you really have to go out of your way to get something done. This is a helpful post regardless, people need all the help they can get. I just hope we don't see the same 2 tutorials used over and over again.
User avatar
MaK
Senior Member
Senior Member
 
Joined: Thu May 18, 2006 12:08 am
Location: USA

Re: Shit maps night 7

Postby LordDz on Sat Dec 28, 2013 12:12 am

Did some testing with friends, we were only able to play the custom map when it was uploaded to the workshop, placing it in the map folder didn't work and instead kicked everyone out when using the changelevel command.

"Other files (for example, custom materials and textures not shipped with CSGO) need to be packed in the bsp separately using bspzip or third party tools. Note: Pakrat will corrupt some CSGO Nav files, so it's best to let the map publish tool do the nav file packing."
https://developer.valvesoftware.com/wik ... blish_Tool
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: Shit maps night 7

Postby MaK on Sat Dec 28, 2013 12:20 am

Or you could just use pakrat and leave the .nav separate. I've never had a problem giving people my map and playing it without using the workshop. I'm not certain if you can use the map publishing tool to pack the maps without uploading them to the workshop (I've never used it). But I'm pretty sure vicpop wants the map files to be sent to him and we won't be using the workshop (it will be a single file download with all the shit maps+content).
User avatar
MaK
Senior Member
Senior Member
 
Joined: Thu May 18, 2006 12:08 am
Location: USA

Re: Shit maps night 7

Postby Teh Frog on Sat Dec 28, 2013 1:12 am

Shit maps.
inb4 100000000 ar_fightyard_lolxd_v1337
I'm considering making a quick little one regardless. Probably dev textured.
Contrary to popular belief, I am not actually a frog.
Image
Image
User avatar
Teh Frog
Regular
Regular
 
Joined: Tue Feb 08, 2011 12:02 am

Re: Shit maps night 7

Postby LordDz on Sat Dec 28, 2013 3:08 am

Watch the videos, this thing is art.
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: Shit maps night 7

Postby Sathor on Sat Dec 28, 2013 11:39 am

Hm. I should make a special version of Investment for this. Didn't work on it for a while, might put me back in. I can imagine a version with flashing textures or scrolling textures everywhere :-D

Last time the map I submitted was rated too high quality for a Shit map night :cry:
User avatar
Sathor
Senior Member
Senior Member
 
Joined: Sat Jan 20, 2007 10:31 pm
Location: Germany

Re: Shit maps night 7

Postby Vicpop on Sun Jan 05, 2014 4:10 am

There's less than a week left before we play! Send me your maps ASAP. hello@cbr.us.to or Vicpop on Steam.
Vicpop
Been Here A While
Been Here A While
 
Joined: Mon Oct 15, 2007 3:03 am

Re: Shit maps night 7

Postby Sathor on Sun Jan 05, 2014 9:25 am

I won't be able to make it :|

I am uncle for 6 days now and we have to cross half the country to visit the little guy, so I had to decide. Hope you guys have fun though.
User avatar
Sathor
Senior Member
Senior Member
 
Joined: Sat Jan 20, 2007 10:31 pm
Location: Germany

Re: Shit maps night 7

Postby Vicpop on Sun Jan 12, 2014 1:49 am



Srredfire streamed most of the night. You can find the archived videos on his Twitch page: http://www.twitch.tv/srredfire/profile/pastBroadcasts
Last edited by Vicpop on Sun Jan 12, 2014 1:54 am, edited 1 time in total.
Vicpop
Been Here A While
Been Here A While
 
Joined: Mon Oct 15, 2007 3:03 am
PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users