AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   [Metamod] Semiclip (v2.2) (https://forums.alliedmods.net/showthread.php?t=250891)

slLent 11-01-2014 15:39

[Metamod] Semiclip (v2.2)
 
2 Attachment(s)
Semiclip

Author: s1lent
Version: 2.2
Description: this module allows to pass through players. Based on semiclip module by joaquimandrade.

Features:
- allows jump to crouching players when semiclip works;
- fixed jamming on mobile platform (a global problem on DeathrunMod).
- intersecting players can take damage.

Installation:
- move all files from archive semiclip.dll | semiclip_mm_i386.so to folder /cstrike/addons/semiclip/
- open /addons/metamod/plugins.ini and insert path to the meta-plugin:

Linux:
Quote:

linux addons/semiclip/semiclip_mm_i386.so
Windows:
Quote:

win32 addons\semiclip\semiclip.dll
Settings:
Quote:

# Description
# semiclip 0|1 disable/enable semiclip
# team 0|1|2|3
# - 0 Semiclip works for all
# - 1 Semiclip works only for Terrorists
# - 2 Semiclip works only for Counter-Terrorists
# - 3 Semiclip works only for teammates.

# time 0|60 How many time in seconds semiclip will work from the beginning of the round. 0 for all time.
# patch 0|1 Fix jamming on a mobile platform. (A global problem on DeathrunMod)
# crouch 0|1 Allows jump to crouching players when semiclip works.
# effects 0|1 Effect of transparency of the player. Depends from distance between players.
# flashfix 0|1 Fix flashing throw transparent players
# noteamflash 0|1 Teammates blocking flashing
# distance 0|200 At what distance player can have transparency and semiclip.
# transparency 0|255 transparency of the player.
Commands:
- semiclip_option - changes settings

Changelog
Spoiler


Overview crouch:
http://www.youtube.com/watch?v=Dk3DSGraFR0

Overview flashfix:
http://www.youtube.com/watch?v=SrdpHpL5LaQ

Source code:
SVN Repository AGHL.RU

Arkshine 11-01-2014 15:51

Re: [Metamod] Semiclip
 
This seems like quite the hacky module \o/.

By the way you should avoid calling "CVAR" because some people may not understand.

slLent 11-01-2014 16:01

Re: [Metamod] Semiclip
 
Quote:

Originally Posted by Arkshine (Post 2218898)
By the way you should avoid calling "CVAR" because some people may not understand.

okay :)

yokomo 11-01-2014 16:03

Re: [Metamod] Semiclip
 
Quote:

Features:
- allows jump to crouching players when semiclip works;
- fixed jamming on mobile platform (a global problem on DeathrunMod).
- intersecting players can take damage.
Finally we have a better solution for semiclip, so this will not make player die when being hit by sliding door.

Good job dude.

claudiuhks 11-01-2014 19:36

Re: [Metamod] Semiclip
 
Seems nice to me.

Have you missed fclose?

slLent 11-01-2014 19:49

Re: [Metamod] Semiclip
 
Quote:

Originally Posted by claudiuhks (Post 2218960)
Have you missed fclose?

ohh
i hastened :fox:

last_hope 11-02-2014 09:43

Re: [Metamod] Semiclip
 
And aim|target info?

slLent 11-02-2014 10:00

Re: [Metamod] Semiclip
 
Quote:

Originally Posted by last_hope (Post 2219231)
And aim|target info?

Yes, shows..

last_hope 11-02-2014 10:13

Re: [Metamod] Semiclip
 
Quote:

Originally Posted by slLent (Post 2219240)
Yes, shows..


Only enemy. Can't see teammates =/

And ye, how to crouch, it doesn't working for me...

Screenshot: http://i.imgur.com/97eJXre.jpg

upd
On zombie plague it show teammates, but not showing enemies... =/

upd2
Thank you!
You've made a great plugin!

For a correct work server must be restarted!

meTaLiCroSS 11-02-2014 16:02

Re: [Metamod] Semiclip
 
Quote:

Originally Posted by last_hope (Post 2219243)
For a correct work server must be restarted!

That's obvious my friend. :shock:

last_hope 11-03-2014 00:45

Re: [Metamod] Semiclip
 
Quote:

Originally Posted by meTaLiCroSS (Post 2219346)
That's obvious my friend. :shock:

The file is re-read at changelevel, as well as on demand (via "meta refresh" console command; see below). When the file is re-read, it will:
load any new plugins added to the file
unload any plugins that have been deleted from the file. This is only applicable to plugins loaded from the inifile. If the plugin was loaded from the console, it will not be unloaded during a refresh, whether it's in the inifile or not.
reload any plugin whose file on disk has been updated since it was loaded. Note this appears to be only useful under linux, as under Windows you cannot rename or overwrite an open DLL, so it doesn't look a loaded plugin could ever have a newer file on disk. Oh well.
:wink:

But for this plugin I killed and started server. (I'm using screen)

Anyway it is a great plugin, without FPS decreasing, even when server is full.
Many thanks to author!

xakintosh 11-03-2014 04:09

Re: [Metamod] Semiclip
 
Good job man~!

yokomo 11-03-2014 07:04

Re: [Metamod] Semiclip
 
I think i have issue with this semiclip, the "effects = 0;" is not working well.

Linux HLDS build 6153 Beta

My config file:
Code:

team = 3;
time = 0;
patch = 1;
crouch = 0;
effects = 0;
distance = 200;
transparency = 120;

As you can see i set "effects = 0" because i don't want any render effect. But ingame it still make player model half-invisible when i go near teammate.

slLent 11-03-2014 10:22

Re: [Metamod] Semiclip
 
Quote:

Originally Posted by yokomo (Post 2219541)
But ingame it still make player model half-invisible when i go near teammate.

a need so

Quote:

effects = 0;
distance = 0;
transparency = 0;

souvikdas95 11-21-2014 04:36

Re: [Metamod] Semiclip
 
Please remove the post build settings from msvc10/semiclip.vcxproj :

Quote:

<PostBuildEvent>
<Command>echo "Compilinig CS Semiclip"
echo $(TargetDir)
copy /Y "$(TargetDir)semiclip.dll" "C:\HLServer\cstrike\addons\semiclip\semiclip .dll"
copy /Y "$(TargetDir)semiclip.pdb" "C:\HLServer\cstrike\addons\semiclip\semiclip .pdb"

copy /Y "$(TargetDir)semiclip.dll" "C:\CrashDumps\semiclip.dll"
copy /Y "$(TargetDir)semiclip.pdb" "C:\CrashDumps\semiclip.pdb"

rmdir /q /s Release
IF EXIST "$(ProjectDir)ServerStart.bat" (CALL "$(ProjectDir)ServerStart.bat" "$(ProjectDir)..\" "$(ProjectDir)..\")</Command>
</PostBuildEvent>

_GamerX 11-22-2014 09:45

Re: [Metamod] Semiclip
 
Please add on/off cvar.

Krtola 12-07-2014 18:24

Re: [Metamod] Semiclip
 
@slLent Is there a possibility to increase the time for unstuck(when a player is in another player)?

slLent 01-23-2015 14:11

Re: [Metamod] Semiclip
 
Update 2.2
- Added works semiclip for SPECTATOR's
- Added command semiclip_option for changes settings
- Added specific config maps with changes settings
- Added fix flashing throw transparent players (overview bug)
- Added teammates blocking flashing

TickTack 01-24-2015 07:39

Re: [Metamod] Semiclip
 
Can you also add the function when player presses and holds the USE button (or maybe to bind any other key) that the semiclip only works than for the selected player?

_GamerX 01-25-2015 02:49

Re: [Metamod] Semiclip
 
Quote:

Originally Posted by slLent (Post 2252839)
Update 2.2
- Added works semiclip for SPECTATOR's
- Added command semiclip_option for changes settings
- Added specific config maps with changes settings
- Added fix flashing throw transparent players (overview bug)
- Added teammates blocking flashing

Thanks, cool module!

baneado 06-27-2015 04:13

Re: [Metamod] Semiclip (v2.2)
 
Can you add natives and forwards like this module https://forums.alliedmods.net/showthread.php?t=261852 ?

It's very useful because you can make semiclip on other entities to only one team or you can select what players can get semiclip individually instead of all team.

Thanks, the best semiclip module!

Murz 08-04-2015 06:04

Re: [Metamod] Semiclip (v2.2)
 
great module thanks :)

Zorbos 01-25-2016 21:31

Re: [Metamod] Semiclip (v2.2)
 
Sorry to necro, but would the author be willing to make a custom version of this module that allows it to work with the new Sven Co-op 5.0? Currently trying to use it in-game causes an immediate server crash, which I'm guessing stems from the fact that it doesn't have the newest SC functions and headers. I'd do it myself but this is out of the scope of my knowledge in coding (which is close to none).

Even though it's meant for CS, this is a fantastic module that works with pretty much every HL1 mod. In Sven specifically though, it's simply amazing to not have players bumping into each other constantly on a full server lol

Would love to be able to use it again.

Anggara_nothing 02-11-2016 01:06

Re: [Metamod] Semiclip (v2.2)
 
2 Attachment(s)
Quote:

Originally Posted by Zorbos (Post 2386585)
Sorry to necro, but would the author be willing to make a custom version of this module that allows it to work with the new Sven Co-op 5.0? Currently trying to use it in-game causes an immediate server crash, which I'm guessing stems from the fact that it doesn't have the newest SC functions and headers. I'd do it myself but this is out of the scope of my knowledge in coding (which is close to none).

Even though it's meant for CS, this is a fantastic module that works with pretty much every HL1 mod. In Sven specifically though, it's simply amazing to not have players bumping into each other constantly on a full server lol

Would love to be able to use it again.

Here you go.
Note: Transparent effect doesn't work!

gabuch2 02-11-2016 20:23

Re: [Metamod] Semiclip (v2.2)
 
Quote:

Originally Posted by Anggara_nothing (Post 2391946)
Here you go.
Note: Transparent effect doesn't work!

That's pretty cool!

Can you make a linux ver?

Anggara_nothing 02-12-2016 00:20

Re: [Metamod] Semiclip (v2.2)
 
Quote:

Originally Posted by Shattered Heart Lynx (Post 2392185)
That's pretty cool!

Can you make a linux ver?

Uhm i dont have any linux. Perhaps someone compile it?

addons_zz 02-12-2016 14:16

Re: [Metamod] Semiclip (v2.2)
 
Perhaps you to install cygwin, mingw, msvc, to create a virtual machine or to keep waiting.

Zorbos 02-18-2016 01:08

Re: [Metamod] Semiclip (v2.2)
 
Darn.. I just recently swapped my servers over to Ubuntu too, lol

Thank you so much for doing this Anggara! I actually wasn't sure if I was going to get a response at all since this thread is pretty old now. Lol

Anyway I gave it a try on my windows installation and it still seems to be crashing my game though.. maybe it's something on my end? Just thought I'd let ya know regardless

Hopefully someone can convert this to Linux someday! I'd be extremely grateful :o

Anggara_nothing 02-18-2016 06:09

Re: [Metamod] Semiclip (v2.2)
 
1 Attachment(s)
Quote:

Originally Posted by Zorbos (Post 2393953)
Darn.. I just recently swapped my servers over to Ubuntu too, lol

Thank you so much for doing this Anggara! I actually wasn't sure if I was going to get a response at all since this thread is pretty old now. Lol

Anyway I gave it a try on my windows installation and it still seems to be crashing my game though.. maybe it's something on my end? Just thought I'd let ya know regardless

Hopefully someone can convert this to Linux someday! I'd be extremely grateful :o

Any output files? metamod version?
Solokillers already compiled custom metamod-p to get it works with new engine limits. Check here.
I'll try to compile linux binary in Ubuntu later...

EDIT : Compiled in Ubuntu with MinGW. Untested.

gabuch2 02-18-2016 17:30

Re: [Metamod] Semiclip (v2.2)
 
Quote:

Originally Posted by Anggara_nothing (Post 2394035)
Any output files? metamod version?
Solokillers already compiled custom metamod-p to get it works with new engine limits. Check here.
I'll try to compile linux binary in Ubuntu later...

EDIT : Compiled in Ubuntu with MinGW. Untested.

Crashes on PlayerPutInServer

Code:

L 18/02/2016 - 22:27:46: "Luces en Babel<2><STEAM_0:1:13478675><>" connected, address "XXXXXXXXX:XXXXX"
L 02/18/2016 - 22:27:46: [admin.amxx] Login: "Luces en Babel<2><STEAM_0:1:13478675><>" became an admin (account "STEAM_0:1:13478675") (access "abcdefghijklmnopqrstu") (address "XXXXXXX")
L 18/02/2016 - 22:27:46: "Luces en Babel<2><STEAM_0:1:13478675><>" STEAM USERID validated
L 18/02/2016 - 22:27:56: Server is no longer empty, idle timer disabled.
L 18/02/2016 - 22:27:56: "Luces en Babel<2><STEAM_0:1:13478675><players>" has entered the game
Segmentation fault


Anggara_nothing 02-18-2016 19:30

Re: [Metamod] Semiclip (v2.2)
 
Quote:

Originally Posted by Shattered Heart Lynx (Post 2394305)
Crashes on PlayerPutInServer

Code:

L 18/02/2016 - 22:27:46: "Luces en Babel<2><STEAM_0:1:13478675><>" connected, address "XXXXXXXXX:XXXXX"
L 02/18/2016 - 22:27:46: [admin.amxx] Login: "Luces en Babel<2><STEAM_0:1:13478675><>" became an admin (account "STEAM_0:1:13478675") (access "abcdefghijklmnopqrstu") (address "XXXXXXX")
L 18/02/2016 - 22:27:46: "Luces en Babel<2><STEAM_0:1:13478675><>" STEAM USERID validated
L 18/02/2016 - 22:27:56: Server is no longer empty, idle timer disabled.
L 18/02/2016 - 22:27:56: "Luces en Babel<2><STEAM_0:1:13478675><players>" has entered the game
Segmentation fault


Hmmm that's weird. I'm test it and working in lister server and dedicated server.
Try running it without amxmodx.

Zorbos 02-19-2016 03:09

Re: [Metamod] Semiclip (v2.2)
 
I have the newest version of Metamod P from Solokiller. I tried the new semiclip linux binary both with and without AMX enabled and I get the same Segmentation Fault that SH Lynx gets which causes the server to immediately crash. Only seems to happen when a player joins, other than that it loads just fine

Anggara_nothing 02-19-2016 03:13

Re: [Metamod] Semiclip (v2.2)
 
Quote:

Originally Posted by Zorbos (Post 2394441)
I have the newest version of Metamod P from Solokiller. I tried the new semiclip linux binary both with and without AMX enabled and I get the same Segmentation Fault that SH Lynx gets which causes the server to immediately crash. Only seems to happen when a player joins, other than that it loads just fine

Use the config.ini file i provided in windows binary.

Zorbos 02-19-2016 11:59

Re: [Metamod] Semiclip (v2.2)
 
Yup, tried that too.. but no dice :(

Anggara_nothing 02-21-2016 23:29

Re: [Metamod] Semiclip (v2.2)
 
Quote:

Originally Posted by Zorbos (Post 2394564)
Yup, tried that too.. but no dice :(

Ask help in official svencoop forums, they may help you.

gabuch2 02-22-2016 06:57

Re: [Metamod] Semiclip (v2.2)
 
Quote:

Originally Posted by Anggara_nothing (Post 2394442)
Use the config.ini file i provided in windows binary.

Just did this, and it works great!

Anggara_nothing 02-22-2016 07:00

Re: [Metamod] Semiclip (v2.2)
 
Quote:

Originally Posted by Shattered Heart Lynx (Post 2395587)
Just did this, and it works great!

That's a good news! :)
windows or linux?

gabuch2 02-22-2016 09:04

Re: [Metamod] Semiclip (v2.2)
 
Quote:

Originally Posted by Anggara_nothing (Post 2395588)
That's a good news! :)
windows or linux?

Linux :)

Ticketry 04-25-2016 23:55

Re: [Metamod] Semiclip (v2.2)
 
Howdi Anggara_nothing!

I had a quick question, I was doing some testing with your plugin on my Sven-Coop server and I was curious would it be possible to make it more friendly on certain maps that rely on jumping on certain objects such as creates or barrels that are floating in water? I'm using this on a HL-Campaign server and I noticed once you jump on certain objects you just get stuck! So far this plugin works wonders :3

-Ticketry

Anggara_nothing 05-04-2016 17:01

Re: [Metamod] Semiclip (v2.2)
 
Quote:

Originally Posted by Ticketry (Post 2414281)
Howdi Anggara_nothing!

I had a quick question, I was doing some testing with your plugin on my Sven-Coop server and I was curious would it be possible to make it more friendly on certain maps that rely on jumping on certain objects such as creates or barrels that are floating in water? I'm using this on a HL-Campaign server and I noticed once you jump on certain objects you just get stuck! So far this plugin works wonders :3

-Ticketry

Unfortunately i don't have sufficient C++ knowledges especially metamod parts. :(


All times are GMT -4. The time now is 13:44.

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