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

Soccerjam Mod Little Edit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tepegoz
Senior Member
Join Date: Apr 2019
Old 11-26-2019 , 04:59   Soccerjam Mod Little Edit
Reply With Quote #1

HTML Code:
////////////////////////////////

		////////////////////////////////
Attached Files
File Type: sma Get Plugin or Get Source (soccerjam.sma - 134 views - 74.5 KB)

Last edited by tepegoz; 12-08-2020 at 10:08.
tepegoz is offline
tepegoz
Senior Member
Join Date: Apr 2019
Old 12-03-2019 , 05:04   Re: Soccerjam Mod Little Edit
Reply With Quote #2

up
tepegoz is offline
tepegoz
Senior Member
Join Date: Apr 2019
Old 04-08-2020 , 18:18   Re: Soccerjam Mod Little Edit
Reply With Quote #3

update
tepegoz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-08-2020 , 18:34   Re: Soccerjam Mod Little Edit
Reply With Quote #4

Change MAX_ASSISTERS to 4 and modify the first line:

Code:
new assisters[MAX_ASSISTERS + 1] = { 0, 0, 0, 0, 0 }

// Edit: also here:

Code:
// Loop through each assister value for(x=0; x<3; x++)

Change the 3 to MAX_ASSISTERS.
__________________

Last edited by OciXCrom; 04-08-2020 at 18:44.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tepegoz
Senior Member
Join Date: Apr 2019
Old 04-08-2020 , 19:14   Re: Soccerjam Mod Little Edit
Reply With Quote #5

I tried 6 player but now still counting first 4 assisters. I want to counting last 3 asisters.
tepegoz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-08-2020 , 21:45   Re: Soccerjam Mod Little Edit
Reply With Quote #6

Nevermind, totally misread that.

Change:

Code:
for(i=0; i<16; i++) {

To:

Code:
for(i=15; i>=0; i--) {

Use your original code. Discard my previous post.
__________________

Last edited by OciXCrom; 04-08-2020 at 22:00.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tepegoz
Senior Member
Join Date: Apr 2019
Old 04-09-2020 , 05:08   Re: Soccerjam Mod Little Edit
Reply With Quote #7

not working.

Last edited by tepegoz; 12-08-2020 at 10:07.
tepegoz is offline
tepegoz
Senior Member
Join Date: Apr 2019
Old 04-10-2020 , 17:25   Re: Soccerjam Mod Little Edit
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
Nevermind, totally misread that.

Change:

Code:
for(i=0; i<16; i++) {

To:

Code:
for(i=15; i>=0; i--) {

Use your original code. Discard my previous post.
This code is working but server is crashing. Can you help me? This is another assist code(look this part /////////////////////WRITE ASSIST CODE HERE IF NEEDED///////////):
PHP Code:
public kickBall(idvelType)
{
    
remove_task(55555)
    
set_task(get_pcvar_float(CVAR_RESET),"clearBall",55555)

    new 
team get_user_team(id)
    new 
a,x

    
//Give it some lift
    
ball_infront(id55.0)

    
testorigin[2] += 10

    
new Float:tempO[3], Float:returned[3]
    new 
Float:dist2

    entity_get_vector
(idEV_VEC_origintempO)
    new 
tempEnt trace_lineidtempOtestoriginreturned )

    
dist2 get_distance_f(testoriginreturned)

    
//ball_infront(id, 55.0)

    
if( point_contents(testorigin) != CONTENTS_EMPTY || (!is_user_connected(tempEnt) && dist2 ) )//|| tempDist < 65)
        
return PLUGIN_HANDLED
    
else
    {
        
//Check Make sure our ball isnt inside a wall before kicking
        
new Float:ballF[3], Float:ballR[3], Float:ballL[3]
        new 
Float:ballB[3], Float:ballTR[3], Float:ballTL[3]
        new 
Float:ballBL[3], Float:ballBR[3]

        for(
x=0x<3x++) {
                
ballF[x] = testorigin[x];    ballR[x] = testorigin[x];
                
ballL[x] = testorigin[x];    ballB[x] = testorigin[x];
                
ballTR[x] = testorigin[x];    ballTL[x] = testorigin[x];
                
ballBL[x] = testorigin[x];    ballBR[x] = testorigin[x];
            }

        for(
a=1a<=6a++) {

            
ballF[1] += 3.0;    ballB[1] -= 3.0;
            
ballR[0] += 3.0;    ballL[0] -= 3.0;

            
ballTL[0] -= 3.0;    ballTL[1] += 3.0;
            
ballTR[0] += 3.0;    ballTR[1] += 3.0;
            
ballBL[0] -= 3.0;    ballBL[1] -= 3.0;
            
ballBR[0] += 3.0;    ballBR[1] -= 3.0;

            if(
point_contents(ballF) != CONTENTS_EMPTY || point_contents(ballR) != CONTENTS_EMPTY ||
            
point_contents(ballL) != CONTENTS_EMPTY || point_contents(ballB) != CONTENTS_EMPTY ||
            
point_contents(ballTR) != CONTENTS_EMPTY || point_contents(ballTL) != CONTENTS_EMPTY ||
            
point_contents(ballBL) != CONTENTS_EMPTY || point_contents(ballBR) != CONTENTS_EMPTY)
                    return 
PLUGIN_HANDLED
        
}

        new 
ent = -1
        testorigin
[2] += 35.0

        
while((ent find_ent_in_sphere(enttestorigin35.0)) != 0) {
            if(
ent maxplayers)
            {
                new 
classname[32]
                
entity_get_string(entEV_SZ_classnameclassname31)

                if((
contain(classname"goalnet") != -|| contain(classname"func_") != -1) &&
                    !
equal(classname"func_water") && !equal(classname"func_illusionary"))
                    return 
PLUGIN_HANDLED
            
}
        }
        
testorigin[2] -= 35.0

    
}

    new 
kickVel
    
if(!velType)
    {
        new 
str = (PlayerUpgrades[id][STR] * AMOUNT_STR) + (AMOUNT_POWERPLAY*(PowerPlay*5))
        
kickVel get_pcvar_num(CVAR_KICK) + str
        kickVel 
+= g_sprint[id] * 100

        
if(direction) {
            
entity_get_vector(idEV_VEC_anglesBallSpinDirection)
            
curvecount CURVE_COUNT
        
}
    }
    else {
        
curvecount 0
        direction 
0
        kickVel 
random_num(100600)
    }

    new 
Float:ballorig[3]
    
entity_get_vector(id,EV_VEC_origin,ballorig)
    for(
x=0x<3x++)
        
distorig[0][x] = floatround(ballorig[x])

    
velocity_by_aim(idkickVelvelocity)

    for(
x=0x<3x++)
        
distorig[0][x] = floatround(ballorig[x])

    
/////////////////////WRITE ASSIST CODE HERE IF NEEDED///////////
    
if ( iassist] == team ) {
        if ( 
iassistteam ] == 15 )
            
iassistteam ] = 0
    
}
    else {
        
// clear the assist list
        
new ind
        
for(ind 0ind 16ind++ )
            
assistind ] = 0
        
// clear the assist index
        
iassistteam ] = 0
        
// set which team to track
        
iassist] = team
    
}
    
assistiassistteam ]++ ] = id
    
/////////////////////WRITE ASSIST CODE HERE IF NEEDED///////////

    
ballowner id
    ballholder 
0
    entity_set_origin
(aball,testorigin)
    
entity_set_vector(aball,EV_VEC_velocity,velocity)

    
set_task(CURVE_TIME*2"CurveBall"id)

    
emit_sound(aballCHAN_ITEMBALL_KICKED1.0ATTN_NORM0PITCH_NORM)

    
glow(id,0,0,0,0)

    
beam()

    new 
aname[64]
    
get_user_name(id,aname,63)

    if(!
g_sprint[id])
        
set_speedchange(id)

    
format(temp1,63,"%L",LANG_PLAYER,"KICKED_BALL",TeamNames[team],aname)
    
client_print(0,print_console,"%s",temp1)
    return 
PLUGIN_HANDLED

tepegoz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-11-2020 , 07:29   Re: Soccerjam Mod Little Edit
Reply With Quote #9

I don't see anything useful in there. If the code was at least "good", things would have been much easier. Post the full code.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 04:50.


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