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

Solved SoccerJam Goal Net hide (MAP & MOD)


Post New Thread Reply   
 
Thread Tools Display Modes
sanimare
Senior Member
Join Date: Sep 2010
Old 11-28-2022 , 11:12   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #11

Still the same, i already tried soccerjam_goalnet as ent but its hidding all the lights and the lines on the map.
Map is in SoccerJam+.zip in this link: https://github.com/Doondook/soccerjam
Also will be good to remove it from sj_downunder, sj_trix_zone and soccerjam2017, thats 5 map we play often.
I tried that command on every map and every map has different ent name probably, cuz its hidding something else.
sanimare is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 11-28-2022 , 18:11   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #12

This is fixable but I'll have time maybe tomorrow afternoon I'll see what I can do.

The light issue can be fixed by searching in a sphere around info player deathmatch for func illusionary when goal soccernet entities don't exist fixing both problems you're facing.

Also could be that the guy did all maps manually
__________________

Last edited by deprale; 11-28-2022 at 18:12.
deprale is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 11-28-2022 , 22:12   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #13

Quote:
Originally Posted by sanimare View Post
Still the same, i already tried soccerjam_goalnet as ent but its hidding all the lights and the lines on the map.
Map is in SoccerJam+.zip in this link: https://github.com/Doondook/soccerjam
Also will be good to remove it from sj_downunder, sj_trix_zone and soccerjam2017, thats 5 map we play often.
I tried that command on every map and every map has different ent name probably, cuz its hidding something else.
There's no maps other than soccerjam.bsp in that zip
Found them here though
https://github.com/davidkohout/SoccerjamPlusPublic

I added also a check to see if soccerjam_goalnet exists and then I set so it doesn't add all the lights to it so if a map will work it will work but as far as I can see for soccerjam2017 everything is func_illusionary lol
__________________

Last edited by deprale; 11-28-2022 at 22:30.
deprale is offline
sanimare
Senior Member
Join Date: Sep 2010
Old 11-29-2022 , 06:29   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #14

So it's hard, i saw the guy who did it on his server with the map soccerjam_sunrise_v3 because thats the last map updated and all professional players play on, soccerjam.bsp is first, so it's not that kind of important as soccerjam_sunrise_v3.bsp to hide goals net.. You'll find the way how to do it because it is possible.
sanimare is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 11-29-2022 , 06:47   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #15

Please upload the map, I can get it working on soccerjam so maybe I can do it on that one too, the way some maps are made is that the goalnets are func_wall which is a weird choice.

They might also have a per map model number list to hide which would also work

EDIT: Yep just tested, the maps always load the same entities in the same order, so you can hide certain number pairs (2 goalnets) per map, looks like that would be the most "proper" way of doing the plugin, since there is no general convention while creating such maps some people use func_wall some func_illusionary, some actually create the soccerjam_goalnet entities.

https://streamable.com/rm3v1t

Give me the map(upload it somewhere on mediafire for example or dropmefiles) and I'll come up with all the entity id's to hide from player.

If you want in the future to add new maps support comment out the prints in the source file and you use bspguy open the map go click the goalnets then go to Map > Entity Report, open your server change the map to the one you're trying to add, go check the console you will see a list of entities and their id's, now double click on entities in the entity report window until you find both goalnets and see their position in the list compared to console output(it will be slightly different), it will help you find the id's faster and now go again in the source file and do something like this...

PHP Code:
new const g_MapNames[ ][ ] = {
    { 
"soccerjam" },
    { 
"sj_downunder" },
    { 
"soccerjam2017" },
    { 
"sj_trix_zone" },
    { 
"sj_mxsoccer_small" },
    { 
"soccerjam_sunrise_v3" }
}
new const 
g_EntIDs2Hidesizeofg_MapNames ) ][ ] = {
    { 
5862 }, //socerjam
    
3451 }, //sj_downunder
    
133134 }, //etc....
    
6667 },
    { 
92102103 }, // the only map that has 3 entities on the goalnet...
    
{ } // unknown i dont have the map you either do it yourself or upload the map and i'll do it

becomes something like:
PHP Code:
new const g_MapNames[ ][ ] = {
    { 
"soccerjam" },
    { 
"sj_downunder" },
    { 
"soccerjam2017" },
    { 
"sj_trix_zone" },
    { 
"sj_mxsoccer_small" },
    { 
"soccerjam_sunrise_v3" },
    { 
"soccerjam_new_map_v9" }
}
new const 
g_EntIDs2Hidesizeofg_MapNames ) ][ ] = {
    { 
5862 },
    { 
3451 },
    { 
133134 },
    { 
6667 },
    { 
92102103 }, // the only map that has 3 entities on the goalnet...
    
{ }, // unknown i dont have the map you either do it yourself or upload the map and i'll do it
    
102105 }


If you find that the map has more than 3 model/entity in the goalnet that u need to hide, you need to increase MAX_NETS in the source code, if you have 5 entities you hide you put MAX_NETS to 5.

Worked fine in my tests. ENJOY!
Attached Files
File Type: sma Get Plugin or Get Source (hidegoalnets.sma - 24 views - 2.7 KB)
__________________

Last edited by deprale; 11-29-2022 at 11:19.
deprale is offline
sanimare
Senior Member
Join Date: Sep 2010
Old 11-29-2022 , 14:18   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #16

I tested, on sj_downunder its hidding one goal net, other is normal.
Here is the link for the soccerjam_sunrise_v3.bsp -> https://www.mediafire.com/file/ucog2...se_v3.bsp/file
I'll definitely see what you type here and try it by my own, cuz there is like 50 maps i can use, but currently im using just 5 maps which is most popular..

I tried

PHP Code:
new const g_MapNames[ ][ ] = {
    { 
"soccerjam" },
    { 
"sj_downunder" },
    { 
"soccerjam2017" },
    { 
"sj_trix_zone" },
    { 
"sj_mxsoccer_small" },
    { 
"soccerjam_sunrise_v3" }
}
new const 
g_EntIDs2Hidesizeofg_MapNames ) ][ ] = {
    { 
5862 },
    { 
3451 },
    { 
133134 },
    { 
6667 },
    { 
92102103 }, // the only map that has 3 entities on the goalnet...
    
58686971 
But it's not hidding any goal net on soccerjam_sunrise_v3, i found their numbers in bspguy also added
PHP Code:
#define MAX_NETS 4 

Last edited by sanimare; 11-29-2022 at 18:38.
sanimare is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 11-29-2022 , 22:22   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #17

Quote:
Originally Posted by sanimare View Post
I tested, on sj_downunder its hidding one goal net, other is normal.
Here is the link for the soccerjam_sunrise_v3.bsp -> https://www.mediafire.com/file/ucog2...se_v3.bsp/file
I'll definitely see what you type here and try it by my own, cuz there is like 50 maps i can use, but currently im using just 5 maps which is most popular..

I tried

PHP Code:
new const g_MapNames[ ][ ] = {
    { 
"soccerjam" },
    { 
"sj_downunder" },
    { 
"soccerjam2017" },
    { 
"sj_trix_zone" },
    { 
"sj_mxsoccer_small" },
    { 
"soccerjam_sunrise_v3" }
}
new const 
g_EntIDs2Hidesizeofg_MapNames ) ][ ] = {
    { 
5862 },
    { 
3451 },
    { 
133134 },
    { 
6667 },
    { 
92102103 }, // the only map that has 3 entities on the goalnet...
    
58686971 
But it's not hidding any goal net on soccerjam_sunrise_v3, i found their numbers in bspguy also added
PHP Code:
#define MAX_NETS 4 
https://streamable.com/4wajv1 here please follow this to see how im finding them, it should work in sj_downunder unless you have a modified version of it or you messed with the model numbers, im using the one from the soccerjam+ folder.

Here is the updated version with the soccerjam_sunrise_v3 models, you can see how I got them properly in the video up there, the ones yo ugot 58 68 69 71 are completely off.

PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>

#define PLUGIN " [SJ]Hide goalnets"
#define AUTHOR "deprale"
#define VERSION "1.0"
#define MAX_ENTITIES 1372
#define MAX_NETS 6 /*when you add more than this number of entities in any cell of g_EntIDs2Hide
                      
you would want to basically increase this, for example if u have a map with 4 numbersthen you increase MAX_NETS to 4you get the point */ 

new 
g_HideMAX_PLAYERS ];
new 
bool:g_bGoalNetEntityMAX_ENTITIES ];
new const 
g_MapNames[ ][ ] = {
    { 
"soccerjam" },
    { 
"sj_downunder" },
    { 
"soccerjam2017" },
    { 
"sj_trix_zone" },
    { 
"sj_mxsoccer_small" },
    { 
"soccerjam_sunrise_v3" }
}
new const 
g_EntIDs2Hidesizeofg_MapNames ) ][ ] = {
    { 
5862 },
    { 
3451 },
    { 
133134 },
    { 
6667 },
    { 
92102103 }, // the only map that has 3 entities on the goalnet...
    
151150149148147138 }
}

public 
plugin_init( )
{
    
register_pluginPLUGINVERSIONAUTHOR )
    
register_clcmd"say /net""cmd_net" )
    
register_forwardFM_AddToFullPack"fwdAddToFullPack_Post")
}

public 
plugin_cfg( ) {
    new 
tempmapname32 ],
        
ent = -1,
        
mapid

    get_mapname
tempmapnamecharsmaxtempmapname ) )

    for ( new 
0sizeof(g_MapNames); i++ )
    {
        if( 
equalig_MapNames[i], tempmapnamecharsmax(tempmapname)) )
            
mapid i
    
}

    while (
ent != MAX_ENTITIES)
    {
        
ent++
        if( 
pev_valident ) ) {
            new 
temp32 ]
            
peventpev_classnametempcharsmaxtemp ) )
            
/* server_print("^nclassname: %s^n entid: %i^n", temp, ent) */

            
for(new 0MAX_NETSi++)
                if( 
ent == g_EntIDs2Hidemapid ][ ] ) /* { */
                    
g_bGoalNetEntityent ] = true
                    
/* server_print( "FOUND ENTITY MATCHING^nclassname: %s^n entid: %i^n", temp, ent )
                } */ 
        
}
    }

    return 
PLUGIN_HANDLED
}

public 
cmd_netid )
{
    switch( 
g_Hideid ] ){
        case 
0g_Hideid ] = true
        
case 1g_Hideid ] = false
    
}
    
client_print_coloridprint_team_default"^4Hide nets^1:^3 %s"g_Hideid ] ? "Yes" "No" )

    return 
PLUGIN_HANDLED //don't let the command be shown in chat (annoying for others)
}

public 
client_connectid )
{
    
g_Hideid ] = false
}

public 
client_disconnectedid )
{
    
g_Hideid ] = false
}

public 
fwdAddToFullPack_Postes_handleeentiHosthostflagsplayerpset )
{
    if ( !
g_HideiHost ] )
        return 
FMRES_IGNORED

    
if ( g_bGoalNetEntityent ] )
        
set_eses_handleES_Effectsget_eses_handleES_Effects ) | EF_NODRAW )

    return 
FMRES_IGNORED

__________________
deprale is offline
sanimare
Senior Member
Join Date: Sep 2010
Old 11-30-2022 , 06:18   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #18

I have just tried soccerjam_sunrise_v3.bsp and it is hidding only net from above the goal.

Last edited by sanimare; 11-30-2022 at 06:25.
sanimare is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 11-30-2022 , 09:28   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #19

He has given you a video and steps on how to remove the entity. Please watch it and follow the steps.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 11-30-2022 , 10:38   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #20

Quote:
Originally Posted by sanimare View Post
I have just tried soccerjam_sunrise_v3.bsp and it is hidding only net from above the goal.
You might have plugins that create entities on the map, place my plugin above all please try that and if it doesn't work just follow my video.
__________________
deprale 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 15:32.


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