Weapon and ScreenShake

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
dailoc
Posts: 58
Joined: Sun May 06, 2012 4:42 pm
Contact:

Weapon and ScreenShake

Post by dailoc » Tue Mar 26, 2013 2:08 pm

I have a problem. No matter what I do, when I shoot the weapon, it still cause the whole level to tremble (shake). Still couldn't find out the solutions. Here is the .ini section of the weapon and its projectile

Code: Select all

;*********************************************************
; M249
;*********************************************************
[M249]
type = weapon
slot = 3
firerate = 0
catagory = projectile
projectile = 10mm_shell
attribute = enemy_health
altattribute = soldier_health
ammunition = 10mm_shell
ammopershot = 1
shotpermagazine = 50
worksunderwater = false
attacksound = weapon\M230Fire_Shot.wav
reloadsound = weapon\m249_boxin.wav
emptysound = weapon\click.wav

;
; 1st person
;
viewactor = Weapon\SAWRH.act
viewfillcolor = 255 255 255
viewambientcolor = 255 255 255
viewrotation = -60 90 0
viewoffset = 8.20 -14.0 12.5
viewscale = 1.2
viewlaunchoffset = -10 0 5
viewlaunchbone = Bone48
viewanimationspeed = 1
viewarmanim = idle
viewidleanim = idle
viewattackanim = fire
viewaltattackanim = fire
viewhitanim = fire
viewalthitanim = fire
viewwalkanim = idle
muzzleflash = MuzzleFlash1
crosshair = crosshair.bmp
crosshairalpha = a_crosshair.bmp
crosshairfixed = false
allowlitcrosshair = false
recoilamount = 0
recoildecay = 0
bobamount = 0
crosshairlitcolor = 255 0 0
viewreloadanim = reload
viewkeyreloadanim = reload
viewattackemptyanim = idle
environmentmapping = false
allmaterial = false
percentmapping = 0
percentmaterial = 0
;
; dropped weapon
;
dropactor = Weapon\SAWw.act
dropfillcolor = 255 255 255
dropambientcolor = 255 255 255
droprotation = -10 150 -50
dropoffset = 10.20 -20.0 2
dropscale = 1.4
dropgravity = false
drophidefromradar = false

Code: Select all

;*********************************************************
; 10mm shell
;*********************************************************
[10mm_shell]
type = projectile
actor = Projectile\w_bullet.act
rotation = 0 -90 90
scale = 0.1
gravity = false
bounce = false
speed = 6500
lifetime = 1
boundingbox = 0.1
explosion = BulletExplosion
damage = 30
altdamage = 30
shakeamount = 0
shakedecay = 0
explosionradius = 0
explosiondamage = 0
decal = 0
bonelevel = true
attachactor = true
movesound = weapon\m249-1.wav
impactsound = impact\ricochet\1.wav

dailoc
Posts: 58
Joined: Sun May 06, 2012 4:42 pm
Contact:

Re: Weapon and ScreenShake

Post by dailoc » Wed Mar 27, 2013 1:49 am

Sorry guys, Whenever I have a problem, after posting my question, I immediately found it, because of the player's animations.

Post Reply