Raised This Month: $51 Target: $400
 12% 

Scripts (Squirrel / VScript) for CSGO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WhOoKie
Junior Member
Join Date: Dec 2015
Old 12-15-2015 , 11:00   Scripts (Squirrel / VScript) for CSGO
Reply With Quote #1

Hello,
I have a question. I searched for like 2 hours in the web on
how to disable the T / CT win on bomb explode / defuse.
I didn't find enything useful.
Well, in another post I read that it is possible.
So, what I need, a script (.nut) or a config (.cfg) which does exactly what I want. That is
Disabeling the round win for T bomb plant or CT bomb defuse.
Otherwise, you could explane me how it works and / or how to do it on my own.

Thanks,
WhOoKie
WhOoKie is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-15-2015 , 11:36   Re: Scripts (Squirrel / VScript) for CSGO
Reply With Quote #2

mp_ignore_round_win_conditions?
Mitchell is offline
WhOoKie
Junior Member
Join Date: Dec 2015
Old 12-15-2015 , 11:42   Re: Scripts (Squirrel / VScript) for CSGO
Reply With Quote #3

Well, Thats almost what I want but...

The round should end, if someone gets a hostage, or kills everyone of the other team.
So it should continue if someone defuses or plants the bomb, but it should end if all Ts or CTs are dead or the hostage is rescued
WhOoKie is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-15-2015 , 11:51   Re: Scripts (Squirrel / VScript) for CSGO
Reply With Quote #4

So basically you should just check the host_rescue event and the player_death event and check if the hostage has been rescued or the other team was eliminated. I'm not sure if Squirrel is able to end the round but you can also do the convar "mp_forcewin <team 0/2/3>".
You cant prevent the round ending without ignore round conditions.
Mitchell is offline
WhOoKie
Junior Member
Join Date: Dec 2015
Old 12-15-2015 , 13:37   Re: Scripts (Squirrel / VScript) for CSGO
Reply With Quote #5

So, basically I just write a Squirrel script like that:

Code:
mp_ignore_round_win_conditions;

if //all Ts dead
// End round for CT
else if //all CTs dead
// End round for T
else if //timer ran out
// End round for Ts
else if //Ts reached area
// win round for Ts
and so on...
You mean like that?
The needed Squirrel I can get from www.squirrel-lang.org
The needed modded-sqirrel can I get from here right?

Last edited by WhOoKie; 12-15-2015 at 13:37. Reason: Now, right formatted
WhOoKie is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-15-2015 , 13:46   Re: Scripts (Squirrel / VScript) for CSGO
Reply With Quote #6

We don't really cover VScript here, you might have more luck elsewhere if you don't want to use SourceMod.
__________________
asherkin is offline
WhOoKie
Junior Member
Join Date: Dec 2015
Old 12-16-2015 , 08:50   Re: Scripts (Squirrel / VScript) for CSGO
Reply With Quote #7

Well, I may use the forcewin-thing, seems like a good idea.
I tryed it.
How do I use mp_forcewin?
I tryed
Code:
mp_forcewin
mp_forcewin 0
mp_forcewin 1
mp_forcewin 2
mp_forcewin T
mp_forcewin CT
and the round wasn't over.
I tryed it on Elemination, Defuse and Hostage Rescue.
Why? Could enyone explane how that command works? Didn't find enything in the web.
Tanks

Last edited by WhOoKie; 12-16-2015 at 09:11. Reason: Added text
WhOoKie is offline
Reply



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 03:28.


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