Page 1 of 1

Barebones Weapon Package

Posted: Thu Dec 08, 2005 3:02 am
by AndyCR
Seeing there seems to be a need for it, here is a basic, barebones weapon package.

(Dont laugh at the model, i didnt aim for good looks)

README

Barebones Weapon Example
By AndyCR

License:

By using the files contained in this archive, you agree to these license terms. If you do not agree to these terms, delete the archive and all copies of it to be released from the terms of this license. You agree not to take any legal action due to this archive or any files contained within, nor any instructions contained within this Readme.rtf file or corresponding forum post(s). You agree there is no warantee whatsoever in regard to this archive and the files within, and that you take full responsibility for any harm, damages, fees, etc. stemming from the use of this example.

Instructions:

To use this weapon example, extract the 'media' folder to your 'RealityFactory' folder (default 'C:\RealityFactory'). Add this to the top of your 'install\weapon.ini' file (or wherever there is free space that is not in the middle of another definition):

[WeaponBullet]
type = projectile
actor = Weapons/Projectile.act
rotation = 0 0 0
scale = 0.1
gravity = false
bounce = false
speed = 3000
lifetime = 1
boundingbox = 1
explosion = GeneralExplosion
actorexplosion = GeneralExplosion
showboth = false
attachactor = false
bonelevel = true
damage = 60
altdamage = 15
explosionradius = 128
explosiondamage = 30
decal = 0
movesound = footsteps/footstep.wav
impactsound = Weapons/Impact.wav

[Weapon]
type = weapon
slot = 0
firerate = 1
catagory = projectile
projectile = WeaponBullet
attribute = health
ammunition = WeaponBullet
shotpermagazine = 8
ammopershot = 1
attacksound = Weapons/Fire.wav
reloadsound = Weapons/Reload.wav
emptysound = Weapon/Empty.wav
crosshair = crosshair.bmp
crosshairalpha = a_crosshair.bmp
crosshairfixed = true
allowlitcrosshair = true
crosshairlitcolor = 255 0 0
recoilamount = -5
recoildecay = 80
;
; 1st Person
;
viewactor = Weapons/Weapon.act
viewfillcolor = 255 255 255
viewambientcolor = 255 255 255
viewrotation = -90 90 180
viewoffset = -5 -5 -2.5
viewscale = -0.1
viewlaunchoffset = -5 3.5 20
viewlaunchbone = BONE01
viewanimationspeed = 1
viewarmanim = Draw
viewidleanim = Idle
viewattackanim = Fire
viewaltattackanim = Fire
viewhitanim = Fire
viewalthitanim = Fire
viewwalkanim = Walk
muzzleflash = MuzzleFlash1
crosshair = crosshair.bmp
crosshairalpha = a_crosshair.bmp
crosshairfixed = true
allowlitcrosshair = true
crosshairlitcolor = 255 0 0
recoilamount = 10
recoildecay = 5
bobamount = 20
viewreloadanim = Reload
viewkeyreloadanim = Reload
viewattackemptyanim = Fire
environmentmapping = false
allmaterial = false
percentmapping = 0
percentmaterial = 0

Then, add this to the top of your 'install\player.ini' file (or wherever there is free space that is not in the middle of another definition):

[Weapon]
initial = 0
low = 0
high = 1

[WeaponBullet]
initial = 16
low = 0
high = 32

Next, open the 'weapontest.3dt' level in RFEditPro, compile, run, and grab your new weapon. Enjoy! :)

POST-RELEASE NOTE: If the crosshair dosent work, hit Escape ingame and click Options, select Controls, click Advanced and check 'Crosshair'.

Posted: Thu Dec 08, 2005 3:07 am
by CowboyUp
Hmm..when I open the level, it says "cannot find weapontest.3dt". Wierd :/.

Ill just use the readme in a self made map.

Thanks alot though man! This should really help!

Posted: Thu Dec 08, 2005 3:09 am
by AndyCR
thats odd. no problem, hope it helps, if you want to test the weapon itself change 'initial' for the weapon itself in player.ini to 1.

Posted: Thu Dec 08, 2005 3:14 am
by CowboyUp
Actually, thats a problem I mentioned in another thread a while back. Basically, I cant open any precompiled maps or any demo games. Anyway, awesome "tutorial". Weapon comes out and works fine :)

Posted: Thu Dec 08, 2005 2:45 pm
by AndyCR
that's wierd. have you tried opening tools/inieditor, checking "level open dialog" (or something similar to that, dont know the exact wording), starting rf, double-clicking the "weapontest" map in the dialog that comes up, then clicking new game?

glad to hear it works! :)

Posted: Thu Dec 08, 2005 10:47 pm
by CowboyUp
I did that, now it just crashes after the genisis 3d screen, without any messages. Wierd :/

Oh well. All that matters is that I can play my own self-compiles levels.

Posted: Fri Dec 30, 2005 10:17 pm
by Guest
i did everything you said but i don't have bullets when i fire

did my original weapon pack disappear?

Posted: Tue Aug 29, 2006 12:35 am
by gekido
just curious - did the original RF weapon pack i posted a while ago disappear?

i'm sure i still have it kicking around on a harddrive somewhere - i could post it again as well if people want.

it had 5 or 6 weapons, with sound effects, hud elements etc...

Posted: Wed Aug 30, 2006 8:04 pm
by hike1
http://www.mapvault.com/uploads/rf/

I think Quest used some for the new RF 075a demo on the
RF DL page.