EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
addon (49) admin (269) admins (14) advert (15) adverts (19) afk (15) alerts (12) ammo (23) anti (15) auth (16) automatic (11) awp (23) ban (18) ba_jail (17) bhop (19) block (18) bomb (40) bonus (23) bot (24) bot-management (19) bots (17) bunnyhop (11) Buy (21) cash (65) chat (57) cheat (11) clan (16) classes (22) color (21) colors (18) command (20) commands (18) config (22) connect (42) CS:S (16) css (2513) Damage (36) database (11) dead (15) death (19) deathmatch (70) deathrun (12) disconnect (18) Dissolve (11) dm (20) dod:s (11) dods (389) easy (18) effects (120) English (15) entity (21) es_tools (12) Eventscript (12) flashbang (25) français (99) french (36) fun (288) funny (16) Gabeee (11) gameplay (174) give (16) gravity (11) grenade (25) grenades (29) gun (14) GunGame (26) GunGame5 (11) guns (17) Hack (15) headshot (32) health (55) hegrenade (13) hl2dm (332) HP (13) info (48) information (16) IP (11) jail (26) jailbreak (11) join (23) jump (12) kick (22) kill (44) kills (22) knife (57) leveling (36) management (14) mani (14) map (25) map-management (27) maps (15) match (17) menu (106) message (20) messaging (52) mod (109) model (14) models (32) money (42) motd (13) music (29) mute (17) nades (18) name (13) noblock (35) player (40) player-management (31) player-tracking (28) popup (56) props (23) protection (27) punishment (49) python (63) quake (18) radio (21) random (36) rank (35) rates (16) rcon (13) realism (21) respawn (61) restrict (36) round (20) rpg (24) rules (41) say (11) scout (19) Script (20) script-helper (25) scriptpack (33) sdk (151) server (44) server-tools (42) shop (12) silly (31) simple (27) skins (25) slay (13) soccer (11) sound (45) sounds (92) spanish (11) spawn (63) speed (25) statistics (13) stats (48) status (11) STEAMID (24) Superhero (13) surf (31) Team (25) team-balance (14) teleport (12) text (14) TF2 (143) time (17) timer (14) tools (15) tracers (17) triggers (11) uedi (18) uses_auth (18) utility (11) vip (12) vote (36) voting (22) war (20) wcs (24) wcs:Python (32) weapon (77) weapons (114) web (14) welcome (12) zm (24) zombie (90) zombiemod (51) zombies (11)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (11) .eMko* (6) 101satoon101 (10) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (8) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (7) Bioko (7) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (30) cagemonkey (8) carbon-14 (10) CaskioUTF (5) cbirou (15) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (9) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) craziest (10) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (16) dhack (16) Di[M]aN (12) DoCky (27) Don (15) dordtcore (8) DragonFreddo (8) Drassil (5) Einlanzers (42) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (9) Franc1sco (10) freddukes (18) Frequency (6) Fulmine (5) GAMEREN2 (8) german9114 (13) GODJonez (38) GoodfellaDeal (5) Hansi (6) HitThePipe (7) HOLLDIDAY (9) Icetouch (6) ichthys (25) infamous1 (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (10) KDBFame (6) L'In20Cible (7) Largo Usagi (10) Lobe (11) loKkdoKk (7) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (6) Matth (6) Mattie (20) MBchrono (15) McFly (20) Medda (5) Memphis-84 (10) Messiah93 (12) Mickyy (5) micmacx (6) Mitchell (5) Mordavolt (7) MrScriptaz (5) mryoung (6) Nicolous (26) ojii (31) Omega_K2 (9) Owned|Myself (8) P3N (7) pand3mic (5) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) randomknifer (9) Ratzee (6) ReaCtioN2oo9 (6) Rennnyyy (17) revolutionfighters (6) RideGuy (12) Rio (9) Roeliekt (6) runamagic (13) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (7) sgt.angel (6) sicilia (5) sicman_adrian (22) skillz92 (7) sn4k3 (18) Snake12 (7) snake38 (10) sonicsight (7) spoonman184 (8) stabby (22) stas (22) Strontium Dog (30) SumGuy14 (25) SuperDave (45) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (20) TheDonFather (5) theresthatguy (6) Tiny Tod (7) Totyahun (9) uedi (38) Undead (25) usernamesaretaken (15) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) X-Mania (5) XE_ManUp (13) xfalcon61 (5) zSweetXz (5) [Cs]Lord_Inferno2 (11) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Go to page 1, 2, 3  Next
Author Message
User avatar
New User
Profile

Posts: 17
 
New postPosted: 2006-07-02, 4:59 pm 
   Post subject: NoBlock:Source - Version 0.02b

NoBlock:Source - Version 0.02b
Now players can say !block to be able to stack with other people who have !block enabled
Public variable so people can see it is installed in hlsw or search for servers with it.
Example Search Using Game-Monitor, version being used will be under value


A Script Designed to Prevent User Clipping/AKA Blocking/Collisions (useful for surf and portal servers) for cs:s (counter-strike source)

This script provides the solution to always hearing "*%#@ing blocker" and "We are stuck in the teleporter, come kill us!"

Based off of QuickStrike Source by laderan210
http://forums.mattie.info/cs/forums/viewtopic.php?t=5318

Requires: Mattie EventScript
Tested With: EventScripts 1.0.0.018

Code is fully commented

Script shows Examples of: Commenting, An Advertisement every few rounds, setting variables (even of unicode), reading variables, augmenting/adding variables, displaying colored messages, if statements, and setting player prop using a variable, having public variables for hlsw viewing.

Config Block from v0.02b
Quote:
block config
{
//Player Config
// if enabled players can say !block to be able to stack or block each other for the amount of seconds in the config below
es_setinfo "NoBlock Allow !block" "1" //Set whether players can block for a set amount of time by saying !block
es_setinfo "NoBlock Allow Time" "20" //Set how long the !block command is enabled

// Advertising Settings
es_setinfo "NoBlock Adverts" "1" //Set Adverts On/Off here. If 1 player will get a message every "NoBlock Advert Rounds" rounds.
es_setinfo "NoBlock Advert Rounds" "5" //Set how many rounds to show the NoBlock Advert.
}


To Install:
Create a folder called noblock and place a file containing the above in your eventscripts called es_noblock.txt
or
Extract the zip file to your eventscripts folder

For autoload:
Add es_load noblock
to your autoexec.cfg

To run manually:
load rcon type es_load noblock
then restart the round

To shutdown:
load rcon type es_unload noblock
then restart the round

Easiest way to restart the round is:
sv_cheats 1;
endround;
sv_cheats 0;


Enjoy!!! :P

Don't forget to put in your server name NoBlock to attract players.

Note: Some Char turned out urlencoded on submitting copy and paste version, it may or may not work. I recommend the zip file


Quote:
Here is the story:
Well, I started off seeking a script that does this because a few servers
were poping up with this support. There was no documentation on this
or any official name easy to be found. I searched and searched and
gave up on my search. I started looking through the sdk for either a
variable to set or a function to hook a metamod to. I found this great
variable that showed up in many of the source files m_CollisionGroup.
I knew right away, this must be what the rare mod is. I decided to
do a google search on this and found laderan210's post. I thaught
"nice" and decided not to really reinvent the wheel. The purpose of
me making this post was to 1) provide a quick and easily searchable
description of this type of mod; 2) isolate this just to disable collissions;
and 3) provide a diecent example of code for new scripters.

Now you know... if you have any questions, feel free to ask.
The credit for the core code
CCSPlayer.baseclass.baseclass.baseclass.baseclass.baseclass.
baseclass.m_CollisionGroup
goes to laderan210. Although, I would have eventually figured
it out, just this post would have been a few days later. I probably
would have had a help me topic posted also, to get some involvement
and support from the experts.

-ion out-


Quote:
Removed Old Version


Diet Version
Removed download link since it was so small and basic
Code:
event player_spawn
{
  es_setplayerprop event_var(userid) CCSPlayer.baseclass.baseclass.baseclass.baseclass.baseclass.baseclass.m_CollisionGroup 2
}

_________________
Image


Last edited by ion on 2006-08-08, 7:55 am, edited 20 times in total.




User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 3479
Location:
Calgary, Waterloo, Ottawa
 
New postPosted: 2006-07-02, 5:33 pm 

Nice write up.... :wink:

One suggestion I would make is to have a variable to disable advertisements :|

_________________
Image
Image


User avatar
New User
Profile

Posts: 17
 
New postPosted: 2006-07-02, 5:40 pm 

ichthys wrote:
Nice write up.... :wink:

One suggestion I would make is to have a variable to disable advertisements :|


8) Great suggestion... when I have time I will add one.

until then, to disable the advertisement just comment out the line below.
Code:
es_xmath ion_roundsincead + 1 //augment the advert count by one each round


so it looks like

Code:
//es_xmath ion_roundsincead + 1 //augment the advert count by one each round


This is located in the event round_start block.

That should disable the advertisements completely.


User avatar
Newbie
Profile

Posts: 55
 
New postPosted: 2006-07-02, 5:43 pm 

Eh, for the same ammount of code, I rather just use QuickStrike

_________________
Image


User avatar
New User
Profile

Posts: 17
 
New postPosted: 2006-07-02, 5:47 pm 

decaprime wrote:
Eh, for the same ammount of code, I rather just use QuickStrike


Really most of the code is just comments and an advertisement script to help out new people.

The compressed version of code for you, without the overhead, would be
Code:
event player_spawn
{
  es_setplayerprop event_var(userid) CCSPlayer.baseclass.baseclass.baseclass.baseclass.baseclass.baseclass.m_CollisionGroup 2
}


For downloadable diet version see first post


Last edited by ion on 2006-07-03, 3:05 am, edited 1 time in total.

User avatar
Experienced
Profile

Posts: 423
 
New postPosted: 2006-07-02, 6:41 pm 

I was trying to write a similar addon myself (also inspired and based on QuickStrike Source by laderan210).... but it was very buggy... my first attempt can be seen here:
http://forums.mattie.info/cs/forums/vie ... 3625#43625

improved it a bit... but switching m_CollisionGroup all the time wasn't that good for my server. now i am running something similar to ion's version ;D

_________________
afk


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7438
Location:
At Work
 
New postPosted: 2006-07-03, 12:52 am 

Very cool script! Nice documentation, too.

:)

Thanks,
-Mattie


User avatar
New User
Profile

Posts: 10
 
New postPosted: 2006-07-22, 11:34 am 

i cant get this script to work?


User avatar
New User
Profile

Posts: 17
 
New postPosted: 2006-07-25, 12:21 am 

what have you done to install it?

_________________
Image


User avatar
Newbie
Profile

Posts: 33
Location:
South FL
 
New postPosted: 2006-07-25, 12:35 am 

BiLZ wrote:
i cant get this script to work?

Try reading the directions over again..

_________________
Image


User avatar
New User
Profile

Posts: 3
Location:
Colorado
 
New postPosted: 2006-08-02, 4:28 pm 

Ok, I too tried to get it working with many options like making the .txt a .cfg and folder placement and it's still not working. I read the instructions over and over too. Is there a file/folder name that is wrong some where in the original post? Thanks!


User avatar
Historian
Historian
Profile

Posts: 2542
Location:
Under your rug
 
New postPosted: 2006-08-02, 4:46 pm 

1)Create a file called es_noblock.txt
2)Copy-paste the code from his first post into the new es_noblock.txt
3)Save/Close
4) Go to cstrike/addons/eventscripts/ and create a folder called noblock
5) Place es_noblock.txt in the folder
6) Add es_load noblock to your autoexec.cfg
7) Restart the server

Thats it

_________________
Image


User avatar
New User
Profile

Posts: 3
Location:
Colorado
 
New postPosted: 2006-08-02, 5:17 pm 

I put it in the cfg/events file not knowing/remembering about the addons/eventscripts file. Works now. Perfectly! Thanks guys! Guess I just needed the noobie instructions!!


User avatar
Newbie
Profile

Posts: 65
 
New postPosted: 2006-08-02, 8:06 pm 

LOL
You have saved many lives as now i cant block teleporters and watch people drown on surf_rebel_resistance :cry:
Though its good coz i cant get drowned either 8)
gw

_________________
Are u a fan of roflcopters?
Image


User avatar
New User
Profile

Posts: 12
 
New postPosted: 2006-08-11, 4:26 pm 

Could this be made for a Source mod? (dystopia)
because blocking is a huge problem there


User avatar
New User
Profile

Posts: 13
 
New postPosted: 2006-08-26, 7:27 am 

the new update to css no longer works with this script?

in console it says "math called to a numeric function" or something like that.


User avatar
Guru
Guru
Profile

Posts: 1607
Location:
Location: Location:
 
New postPosted: 2006-08-27, 9:57 am 

*kisses Ion*

Nice script, I only go on servers with NoBlock now, nice name aswell.
Im suprised how the Source Engine allowed you to have a space between a public cvar... but, ahwell.

- ghost.

_________________
- Saul

All code I give out is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 license.


User avatar
New User
Profile

Posts: 13
 
New postPosted: 2006-08-28, 2:36 pm 

Is it possible to set it so you can ONLY run through your teammates and not the enemy? I love the no blocking script, and ppl that play on my server love it as well, the only downfall is when you goto knife someone and you run through them (or they run backwards through you).


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page 1, 2, 3  Next


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group