Quantcast

Jump to content

» «
Photo

[Q] Throwing knives...

8 replies to this topic
creat3d22
  • creat3d22

    Habs fan, for about 2 weeks every year...

  • Members
  • Joined: 15 Jun 2008

#1

Posted 13 January 2009 - 03:59 AM

I'm trying to make throwing knives for my V for Vendetta mod, but I can't get the knives to throw and I've tried pretty much everything to no avail. Here's my weaponinfo file right now:

CODE
<weapon type="KNIFE">
 <data slot="MELEE" firetype="PROJECTILE" damagetype="COLLISION" group="MELEE_GENERIC" targetrange="32.0" weaponrange="32.0" clipsize="2" ammomax="20">
  <damage base="20" networkplayermod="1.0" networkpedmod="1.0"/>
  <physics force="30"/>
  <reload time="28" fasttime="28" crouchtime="28"/>

  <aiming accuracy="1.0">
   <offset x="0.0" y="1.0" z="0.0"/>
   <crouchedoffset x="0.0" y="1.0" z="0.0"/>
  </aiming>

  <pickup regentime="75" ammoonstreet="1"/>

  <controller>
   <rumble duration="50" intensity="0.09"/>
  </controller>

  <flags>
   <flag>THROWN</flag>
   <flag>CAN_AIM</flag>
   <flag>ANIM_RELOAD</flag>
   <flag>MELEE_BLADE</flag>
   <flag>CAN_FREE_AIM</flag>
   <flag>ANIM_CROUCH_FIRE</flag>
  </flags>

  <projectile type="NONE">
   <physics force="35"/>
  </projectile>
 </data>

 <assets model="w_knife">
  <anim meleegroup2="blade_extra" meleegroup1="blade_core"/>
 </assets>


Any ideas?

Flat Face
  • Flat Face

    TeamRising will rise and make the inferior our slaves.

  • BUSTED!
  • Joined: 21 May 2008

#2

Posted 13 January 2009 - 04:14 AM

edit grenades to throw straight and so they don't explode but they cause the damage then replace the model and animation with the knife and throwing animation.

creat3d22
  • creat3d22

    Habs fan, for about 2 weeks every year...

  • Members
  • Joined: 15 Jun 2008

#3

Posted 13 January 2009 - 06:35 AM

Thanks, I got it working in the grenade slot but how do you make it throw straight?

creat3d22
  • creat3d22

    Habs fan, for about 2 weeks every year...

  • Members
  • Joined: 15 Jun 2008

#4

Posted 13 January 2009 - 07:51 AM Edited by creat3d22, 13 January 2009 - 07:54 AM.

This is what I got now:
CODE
<weapon type="GRENADE">
 <data slot="THROWN" firetype="PROJECTILE" damagetype="EXPLOSIVE" group="GRENADE" targetrange="35.0" clipsize="1" ammomax="25">
  <damage base="18" networkplayermod="2.0" networkpedmod="1.0"/>

  <aiming accuracy="1.0">
   <offset x="0.0" y="0.0" z="0.0"/>
   <crouchedoffset x="0.0" y="0.0" z="0.0"/>
   <reticule standing="0.6" ducked="0.5" scale="0.3"/>
  </aiming>

  <pickup regentime="360000" ammoonstreet="8"/>

  <controller>
   <rumble duration="50" intensity="0.1"/>
  </controller>

  <flags>
   <flag>THROWN</flag>
   <flag>CAN_AIM</flag>
   <flag>SILENCED</flag>
   <flag>ANIM_RELOAD</flag>
   <flag>CAN_FREE_AIM</flag>
   <flag>ANIM_CROUCH_FIRE</flag>
  </flags>

  <projectile type="UNUSED0">
   <offset x="0.56" y="0.0" z="0.055"/>
   <rotoffset x="0.0" y="0.0" z="-1.571"/>
   <physics force="12.0" vehiclevelocity="12.0"/>
  </projectile>
 </data>

 <assets model="w_knife">
  <anim group="GRENADE"/>
 </assets>
</weapon>



UNUSED0:

CODE
<weapon type="UNUSED0">
 <data slot="THROWN" firetype="PROJECTILE" damagetype="BULLET" group="MELEE_SHARP" targetrange="10.0" weaponrange="1.6" CLIPSIZE="2">
  <damage base="18" networkplayermod="1.0" networkpedmod="1.0"/>

  <aiming accuracy="1.0">
   <offset x="0.0" y="1.0" z="0.0"/>
   <crouchedoffset x="0.0" y="1.0" z="0.0"/>
   <reticule standing="0.65" ducked="0.55" scale="0.3"/>
  </aiming>

  <pickup regentime="120000"/>

  <controller>
   <rumble duration="60" intensity="0.1"/>
  </controller>

  <flags>
   <flag>CAN_AIM</flag>
   <flag>MELEE_BLADE</flag>
  </flags>

  <projectile type="none">
   <physics force="30.0"/>
  </projectile>
 </data>

 <assets model="w_knife">
  <anim group="GRENADE"/>
 </assets>
</weapon


I can't get ito throw straight, only every now and then... it seems random. And there's no damage...
I'm at a loss now notify.gif

aceship
  • aceship

    Just An Indonesian Scripter

  • Members
  • Joined: 20 Dec 2008

#5

Posted 13 January 2009 - 09:04 AM

You cant make it, i have doing that before, and failed,but you can use it without damage,just an decoration

COLWcF
  • COLWcF

    Square Civilian

  • Members
  • Joined: 23 Aug 2008

#6

Posted 13 January 2009 - 11:09 AM

Make the projectile for the Uzi a knife, slow down the firing speed, and make the model......someones hand?
Just a guess.

Flat Face
  • Flat Face

    TeamRising will rise and make the inferior our slaves.

  • BUSTED!
  • Joined: 21 May 2008

#7

Posted 13 January 2009 - 11:13 AM

you'll need to code it so the grenade model causes death or something, its the only possible way.

rebel_36
  • rebel_36

    dot connectah

  • Members
  • Joined: 14 Mar 2004

#8

Posted 13 January 2009 - 01:20 PM

it does work, ive done it before but i forgot how, i know that helps a lot..

you can increase the grenade velocity so that it goes further and thus faster and straighter

aceship
  • aceship

    Just An Indonesian Scripter

  • Members
  • Joined: 20 Dec 2008

#9

Posted 13 January 2009 - 01:49 PM

QUOTE (COLWcF @ Jan 13 2009, 11:09)
Make the projectile for the Uzi a knife, slow down the firing speed, and make the model......someones hand?
Just a guess.

i already make that, same problem,just push a bit




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users