Go Back   AvaMods 5.o Forums > AvaMods - Server > Server / Mod Support
       Log In
Log In | Lost Password | Register


Server / Mod Support Discuss our servers - Questions, requests, complaints, etc.. Need help with your server? Have any amxx questions/suggestions?

View Poll Results: Do you like weapon jam?
Yes 12 75.00%
No 4 25.00%
Voters: 16. You may not vote on this poll

Reply
Views: 2140 - Replies: 49  
Share LinkBack Thread Tools
  #41 (permalink)   diamond-optic is Special  
Old February 1st, 2008
diamond-optic's Avatar
i dont want a goldfish
 
Join Date: March 13th, 2005
Location: Upstate New York
Status: hazey
Posts: 3,259
Default

and obviously auto's will jam more often just due to the number of shots fired

a basic explantion of how jamming works:

PHP Code:
1000
50

if(random_num(1,x) == && is_clip_notfull)
     {
     if(
random_num(1,y) == 1)
           
//perm jam
     
else
           
//normal jam
     


obviously thats not exactly how its coded in pawn and theres more to it then that.. but thats basically it for simple minded ppl


and to confuse you more.. heres the actual code from the CurWeapon function forward that does the actual jamming:
PHP Code:
    if(get_pcvar_num(p_plugin) && is_user_alive(id) && is_user_connected(id) && !is_user_bot(id))
        {
        new 
wpnid dod_get_weapon_ent(id)
        new 
is_jammed pev(wpnid,pev_iuser4)
        
        if(
wpnid && pev_valid(wpnid))
            {
            
set_pev(wpnid,pev_iuser3,0)
            
            if(
is_jammed)
                
set_pdata_float(wpnid,OFFSET_WPN_PROF,100.0,OFFSET_LINUX)    
            else if(
is_clip_notfull(id))
                {
                if(
random_num(1,get_pcvar_num(p_chance)) == 1)
                    {
                    new 
perm get_pcvar_num(p_perm)
                    
                    if(
perm && random_num(1,perm) == 1)
                        
set_pev(wpnid,pev_iuser4,2)
                    else
                        
set_pev(wpnid,pev_iuser4,1)
                    }
                }
            }    
        } 

and every weapon can jam except nades/rockets/melee.. tho there is a chance that occasionally if you switch weapons at the exact right time as your gun is jamming that it will still fire off the forward but when it gets the wpn entity id you have the new weapon out and it picks up that.. but that should be very very rare



and..
Quote: Originally Posted by BuLLeT View Post
the Tommy gun jammed on me again the other day with the first shot...

whats your point.. you fired a shot and it jammed.. it didnt start off jammed, im positive of that.. next time maybe you should clean your weapon better and/or load the magazine properly

Quote: Originally Posted by ThePowerCosmic in regards to AvaMods
They are the type of people that are absolutely destroying the fabric of america and everything that goodness stands for.


Last edited by diamond-optic; February 1st, 2008 at 08:18 PM.
Reply With Quote
  #42 (permalink)  
Old February 1st, 2008
The Punisher's Avatar
R.I.P. Big Pun
 
Join Date: October 16th, 2007
Location: NY
Status: looking for a spoon
Posts: 1,425
Send a message via AIM to The Punisher
Default

oh now i get it....



but still hate it. lol
C:\Documents and Settings\Ricky\Desktop\sig.jpg
Reply With Quote
  #43 (permalink)  
Old February 8th, 2008
Former AvaMods Admin
 
Join Date: October 8th, 2007
Location: Lexington, SC
Status: No Status
Posts: 723
Send a message via AIM to timmy!
Default

A grenade jam would be awesome "Your arm has cramped up, hit use to drop grenade"
Reply With Quote
  #44 (permalink)  
Old February 8th, 2008
The Punisher's Avatar
R.I.P. Big Pun
 
Join Date: October 16th, 2007
Location: NY
Status: looking for a spoon
Posts: 1,425
Send a message via AIM to The Punisher
Default

NO.
C:\Documents and Settings\Ricky\Desktop\sig.jpg
Reply With Quote
  #45 (permalink)  
Old February 8th, 2008
BuLLeT's Avatar
obsessed with this forum
 
Join Date: June 22nd, 2005
Status: No Status
Posts: 1,162
Default

If that shit happens imma quit dod in general
Reply With Quote
  #46 (permalink)  
Old February 8th, 2008
The Punisher's Avatar
R.I.P. Big Pun
 
Join Date: October 16th, 2007
Location: NY
Status: looking for a spoon
Posts: 1,425
Send a message via AIM to The Punisher
Default

im with ya.
C:\Documents and Settings\Ricky\Desktop\sig.jpg
Reply With Quote
  #47 (permalink)  
Old February 8th, 2008
buck_futter's Avatar
obsessed with this forum
 
Join Date: June 20th, 2005
Location: toad's bedroom
Status: No Status
Posts: 2,196
Send a message via MSN to buck_futter
Default

Quote: Originally Posted by timmy! View Post
A grenade jam would be awesome "Your arm has cramped up, hit use to drop grenade"

nvm theres no yawning smilie
Reply With Quote
  #48 (permalink)  
Old February 8th, 2008
BuLLeT's Avatar
obsessed with this forum
 
Join Date: June 22nd, 2005
Status: No Status
Posts: 1,162
Default

make the walls wallable again then i wont care
Reply With Quote
  #49 (permalink)   diamond-optic is Special  
Old February 8th, 2008
diamond-optic's Avatar
i dont want a goldfish
 
Join Date: March 13th, 2005
Location: Upstate New York
Status: hazey
Posts: 3,259
Default

lol your a noob cause there isnt a single thing done to walls (except like the front of the red room)

Quote: Originally Posted by ThePowerCosmic in regards to AvaMods
They are the type of people that are absolutely destroying the fabric of america and everything that goodness stands for.

Reply With Quote
  #50 (permalink)  
Old February 9th, 2008
The Punisher's Avatar
R.I.P. Big Pun
 
Join Date: October 16th, 2007
Location: NY
Status: looking for a spoon
Posts: 1,425
Send a message via AIM to The Punisher
Default

I knew it....if your lookin at it and its blown up the wall on the left cant be walled only in one spot.

i hate it. lol
C:\Documents and Settings\Ricky\Desktop\sig.jpg
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 02:08 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.