Reloading tutorial

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Mychaeel

New Member
I could imagine that people might find it more useful---or find it at all, for that matter---if you put it on the Wiki. ;)

That aside, you shouldn't use tabs to indent anything in HTML. It may look the way you want it to in Internet Explorer, but other browsers handle tabs differently (and for that matter, technically speaking they wouldn't have to handle it any differently from normal whitespace at all as far as the HTML standards are concerned). Putting your tutorial on the Wiki would fix that problem too. :)
 

Mr Evi1

New Member
Mar 22, 2002
336
0
0
UK
come.to
Mychaeel said:
I could imagine that people might find it more useful---or find it at all, for that matter---if you put it on the Wiki. ;)
I'll try and get around to doing that today. EDIT: The Wiki is now one page bigger :)



Mychaeel said:
...That aside, you shouldn't use tabs to indent anything in HTML...
The formatting went a bit funny. I used a program called 'webcpp' to provide highlighting, and normally it seems to convert tabs to spaces, but for some reason it kept the tabs for the first lot of code.
 
Last edited by a moderator:

Romanov

New Member
May 8, 2003
86
0
0
UK
Hi,
This is a great tutorial but Ive got one question I dont understand why you have this in the code,

//Ignore FireMode[1] which doesn't use any ammo.

what if I want to use fire mode 1 as well as fire mode 0 for firing ? ie i dont want to use alt fire to do the reload as I can use the exec function you have placed there instead, this is what has stopped me from using reloading because I want to keep fire mode 1 for an alt fire and just use an exec button to do the reload.

so the question is if i use fire mode 1 should I just remove this line from the code so i dont ignore fire mode 1?

cheers
Romanov

edit: I should add that gun tute u did was also really useful there wa some stuff in there about default properties I hadnt realised :)
 
Last edited:

Mr Evi1

New Member
Mar 22, 2002
336
0
0
UK
come.to
Romanov said:
...I dont understand why you have this in the code,

//Ignore FireMode[1] which doesn't use any ammo...
I should have put in a comment about that. That bit is there only if alt-fire is used for reloading. If it's done solely with the a bound key, then you can take out the HasAmmo function completely and use whatever you like for alt-fire. Note that if you wanted the alt-fire mode to use different ammo to the primary, it would require some changes.
 

joshsslade

New Member
Jun 18, 2003
37
0
0
Hey,

I cant get this to work.

The bind script does not make the thing come up in the menu.
I havent changed the code of the main script for reloading and i saved it then got my deserteagle code and made it a reloadingweapon subclass then the game and the weapon does not reload and just keeps shooting like normal. What do i have to do to get it working?

Thanks:)
 

Mr Evi1

New Member
Mar 22, 2002
336
0
0
UK
come.to
joshsslade said:
...the weapon does not reload and just keeps shooting like normal...
joshsslade said:
...it does not stop when its emty whats wrong?..
Hmmm, it seems that I forgot a very important bit: The 'AllowFire' function in the FireMode class(es) must be modified to only allow firing when there is ammo on the clip. I've added the appropriate code to the version on the Wiki. I'll update the version on my website later.
 

Romanov

New Member
May 8, 2003
86
0
0
UK
quote from tutorial:

"Bullets are inserted one at a time. If you wanted to completely fill the weapon in one go (as would be the case with most modern-style weapons) then change the bit in the InsertBullet function to ClipCount = Default.ClipCount"
 

joshsslade

New Member
Jun 18, 2003
37
0
0
Romanov said:
quote from tutorial:

"Bullets are inserted one at a time. If you wanted to completely fill the weapon in one go (as would be the case with most modern-style weapons) then change the bit in the InsertBullet function to ClipCount = Default.ClipCount"


i mean when reloading insted of just pressing onece u have to load the
 

joshsslade

New Member
Jun 18, 2003
37
0
0
Romanov said:
quote from tutorial:

"Bullets are inserted one at a time. If you wanted to completely fill the weapon in one go (as would be the case with most modern-style weapons) then change the bit in the InsertBullet function to ClipCount = Default.ClipCount"


i mean when reloading insted of just pressing onece u have to hold the key down for it to work how can i make it so u just press once?
 

Mr Evi1

New Member
Mar 22, 2002
336
0
0
UK
come.to
joshsslade said:
i mean when reloading insted of just pressing onece u have to hold the key down for it to work how can i make it so u just press once?
It stops when you let go of the key because of the 'OnRelease' bit in the bind. To not have it stop when you let go, remove that bit, so you just have something like: E=ReloadMeNow
 

joshsslade

New Member
Jun 18, 2003
37
0
0
Mr_Evi1 said:
It stops when you let go of the key because of the 'OnRelease' bit in the bind. To not have it stop when you let go, remove that bit, so you just have something like: E=ReloadMeNow


Thanks i just wasted my time i rewrote the code:( but thanks anyway
 

Romanov

New Member
May 8, 2003
86
0
0
UK
Yes but only if that weapon has ammo, basically the code does Bringdown if the weapon is out of ammo which would free up the other weapon if there are 2 in that slot. You'd need to code around that.