BlackCompany Posted December 25, 2010 Share Posted December 25, 2010 (edited) Hi! If I'm reading this correctly, you basically want your shotgun to have a strong "push" effect or severe knockback properties right? I am currently modding a gun of my own with similar capabilities and here is what I came up with. It works fairly well and you don't need a script for it to work unless you are adding the effect to a bullet or something. I got this idea from the weapon called "pushy", which already has severe knockback and after looking at it, the value that stood out most was the "Kill Impulse" which was set to 50. When I played with the numbers (I put mine to 80 btw) I set the Critical Effect to NONE, and checked the "On Death" box. What ends up happening is that the gun will do some serious damage and you send them flying. Of course, if you have the "On Death" box left unchecked, I think that means everytime you critical you send them flying. If you set your Critical Multiplier to always happen (i.e. 100%) then they'll always be criticaled and will always be sent flying... :O BUT I'm still testing mine. Hope you have better luck on yours ;) I will Try that Right now, I dont really want it to kill them all the time, but Critical sounds good. hopefully it wont happen too often. So you want to send an opponent flying backward. This should help: ref target Beginscripteffectstart set target to getself If player.getdistance target <= 5player.pushactoraway target 15endifend Create this as a base effect and then add that base effect as a weapon effect. For a weaker more balanced version: Beginscripteffectstart playgroup stagger 1end Beginscripteffectfinish playgroup idle 1end Make this effect last at least 3 seconds, to give the NPC time to stagger and recover. Calling playgroup idle 1 in the finish block forces the actor out of the stagger anim, and they will re-evaluate and resume normal activity at this point. Both effects should work on weapons. They may also work as impact scripts on ammo, though I have not tested this as yet. Planning to soon though. Edited December 25, 2010 by BlackCompany Link to comment Share on other sites More sharing options...
Recommended Posts