Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Solved] Why NPCs don't shoot with the gun?  (Read 957 times)

0 Members and 1 Guest are viewing this topic.

Offline gpgpgpgp

  • *
  • +2% chance to make useful post
  • gpgpgpgp has no influence.
[Solved] Why NPCs don't shoot with the gun?
« on: January 03, 2014, 07:21:08 AM »
I followed BIZ's tutorial on converting CS:S world models (Fix Crotchguns) and brought a cool FN Fal model for CS:S into Smod. The world model looked OK in NPCs' hands, however it simply doesn't shoot. Every time when encountering a hostile, the NPCs raised the guns and their shoulders trembled as if they were shooting. But they weren't! No bullets came out of the gun! I must have done something wrong when converting the w_model. Any ideas how to fix that?
« Last Edit: January 03, 2014, 10:07:38 AM by gpgpgpgp »

Offline Counter-Life™

  • *
  • *
  • +17% chance to make useful post
  • Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!
    • Youtube Channel
Re: [Help] Why NPCs don't shoot with the gun?
« Reply #1 on: January 03, 2014, 09:09:13 AM »
Try to add "animtype"      "ar2" to the NPC section. For example like this:


      "Npc" {
         "UseGL"      "1"
         "RifleAnim"   "0"
         "BurstMax"   "1"
                        "animtype"      "ar2"
         "BurstMin"   "1"
         "FireRate"   "0.11"
         "Range"      "2048"
         "MuzzleFire"   "1"
         "UseLaserPointer"   "0"
         "FireRagdoll"   "0"
      }

Offline gpgpgpgp

  • *
  • +2% chance to make useful post
  • gpgpgpgp has no influence.
Re: [Help] Why NPCs don't shoot with the gun?
« Reply #2 on: January 03, 2014, 10:07:18 AM »
Wonderful. After adding the "AR2" part, the gun works perfectly well now. Silly that I ignored the weapon script!
Thanks, Counter-Life!

Offline Counter-Life™

  • *
  • *
  • +17% chance to make useful post
  • Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!
    • Youtube Channel
Re: [Help] Why NPCs don't shoot with the gun?
« Reply #3 on: January 03, 2014, 11:53:32 AM »
Wonderful. After adding the "AR2" part, the gun works perfectly well now. Silly that I ignored the weapon script!
Thanks, Counter-Life!
No problem.