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

[L4D2] Reloading one a chamber


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 09-05-2012 , 10:08   [L4D2] Reloading one a chamber
Reply With Quote #1

Smg , Rifles , Sniper rifles, Pistols are able to have additional bullet if they reload before emptying their clip, shotguns however does not. CSS version was made , but i was unable to convert it for l4d2, http://forums.alliedmods.net/showthread.php?t=151662. I attach the sp which i tried to convert it for l4d2 but failed to do so. Any help will be appreciated ! Thanks!
Attached Files
File Type: sp Get Plugin or Get Source (RealisticReload.sp - 317 views - 3.8 KB)
ghosthunterfool is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 09-05-2012 , 13:05   Re: [L4D2] Reloading one a chamber
Reply With Quote #2

I v try out the similar code made by myself but i quit becoz i found out that reloading using that methood is kinda buggy.. (I manage to complete the code but lazy fixing the m60 and shottie reloading). What i dont undestand is which part u say dont work?

EDIT: The code u post dosent work on all gun...
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 09-05-2012 at 13:10.
GsiX is offline
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 09-05-2012 , 13:08   Re: [L4D2] Reloading one a chamber
Reply With Quote #3

When i reload, it doesnt give me 51 for the smg but only 50. where the ammo reserver got +1 instead
ghosthunterfool is offline
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 09-05-2012 , 13:14   Re: [L4D2] Reloading one a chamber
Reply With Quote #4

Quote:
Originally Posted by GsiX View Post
I v try out the similar code made by myself but i quit becoz i found out that reloading using that methood is kinda buggy.. (I manage to complete the code but lazy fixing the m60 and shottie reloading). What i dont undestand is which part u say dont work?

EDIT: The code u post dosent work on all gun...
Yeah, why is that so, :/ ? i could not find the solution .
ghosthunterfool is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 09-05-2012 , 13:14   Re: [L4D2] Reloading one a chamber
Reply With Quote #5

Yea i know.. mybe in css that what the code does.. but in L4D2 is someting different... i make a plugin to mod the gun clip ammo... only manage to calculate for the gunt clip type (rifle, ak etc.).. and lazy to continue. But the mod actualy work..

EDiT:U can mod any clip siz u wan but too buggy coz i cant stop the reloading animation when the gun is fully loaded.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 09-05-2012 at 13:20.
GsiX is offline
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 09-05-2012 , 13:16   Re: [L4D2] Reloading one a chamber
Reply With Quote #6

Quote:
Originally Posted by GsiX View Post
Yea i know.. mybe in css that what the code does.. but in L4D2 is someting different... i make a plugin to mod the gun clip ammo... only manage to calculate for the gunt clip type (rifle, ak etc.).. and lazy to continue. But the mod actualy work..
Do u still have the plugin?
ghosthunterfool is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 09-05-2012 , 13:19   Re: [L4D2] Reloading one a chamber
Reply With Quote #7

Yea still have it...
by looking at the code u post... u actualy wan to manualy reload the shotgun by clicking +inpuls and load 1 bullet each key press?


EDIT: if i were u i dont use this code. Its super fail..

PHP Code:
new gun GetPlayerWeaponSlot(client0);
new 
ammo GetEntProp(gunProp_Send"m_iClip1"1);
new 
ammo_override ammo 2;
SetEntProp(gunProp_Send"m_iClip1"ammo_override1
U can get help from the script section.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 09-05-2012 at 13:25.
GsiX is offline
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 09-05-2012 , 13:27   Re: [L4D2] Reloading one a chamber
Reply With Quote #8

So any guidelines on what i should do?

EDIT: the code u using dont allow me to reload my pistol with the extra round

Last edited by ghosthunterfool; 09-05-2012 at 13:27.
ghosthunterfool is offline
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 09-05-2012 , 13:33   Re: [L4D2] Reloading one a chamber
Reply With Quote #9

Quote:
Originally Posted by GsiX View Post
Yea still have it...
by looking at the code u post... u actualy wan to manualy reload the shotgun by clicking +inpuls and load 1 bullet each key press?


EDIT: if i were u i dont use this code. Its super fail..

PHP Code:
new gun GetPlayerWeaponSlot(client0);
new 
ammo GetEntProp(gunProp_Send"m_iClip1"1);
new 
ammo_override ammo 2;
SetEntProp(gunProp_Send"m_iClip1"ammo_override1
U can get help from the script section.
The weird thing is that the pistol works but the primary weapon dont :/
ghosthunterfool is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 09-05-2012 , 13:33   Re: [L4D2] Reloading one a chamber
Reply With Quote #10

Quote:
Originally Posted by ghosthunterfool View Post
So any guidelines on what i should do?

EDIT: the code u using dont allow me to reload my pistol with the extra round
What code i use? If u mention the above code.. its from your attachment.. i m just telling u that the code is fail.

EDIT: it work on primary depend on where u hook the event.. and when is the right time u use the script.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 09-05-2012 at 13:35.
GsiX 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 04:11.


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