ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
Give pistols and the spas12 fire modes?

« Previous 10 events | 1 2 | All Messages
Posted by/on
Question/AnswerMake Oldest Up Sort by Ascending
  14:55:12  3 October 2011
profilee-mailreply Message URLTo the Top
PhoenixHeart
Senior Resident
 

 
On forum: 10/22/2008
Messages: 1165
Huh, that's an interesting question... can you make an upgrade modify a weapon's slot type? I don't think anyone's tried before
  19:24:20  2 October 2011
profilee-mailreply Message URLTo the Top
ZippyDSMlee
(Novice)
 
On forum: 09/10/2010
 

Message edited by:
ZippyDSMlee
10/02/2011 20:02:07
Messages: 28

---QUOTATION---
You'll need to change class from WP_PM to WP_AK74 and add in a bunch more sections so it will work correctly. The game will tell you what ones when it ctd's when it cannot find them.
Slot behaviour is hard coded, so it isn't possible to mod it. However, there is a slot parameter in the config, slot. If it is set to '1', the weapon will go into the pistol slot, and if it is set to '2', it will go into the primary slot. Keep in mind that the pistol slot by default will only accept weapons whose icon size is 2x1, but it is possible to change the size of the slot, and the icon size it will accept.
---END QUOTATION---



So change ef_weapon_type

Add ef_main_weapon_type

Change animation_slot

Add control_inertion_factor

Change fire_modes to 1, 3, -1



what else?

What dose default from the ruck do? it loads it from the sack, I wonder if there is anything useable in the grenade code.

Also I wonder if you can add a slot that comes up via next weaopn?

edit

Got a MP5 to work in a a pistol slot, so how hard is it to add weapons?
I am thinking of just making all the weapons with a alt slot variant.
Or better yet is it easier to add a upgrade?
  07:45:41  2 October 2011
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6342
You'll need to change class from WP_PM to WP_AK74 and add in a bunch more sections so it will work correctly. The game will tell you what ones when it ctd's when it cannot find them.
Slot behaviour is hard coded, so it isn't possible to mod it. However, there is a slot parameter in the config, slot. If it is set to '1', the weapon will go into the pistol slot, and if it is set to '2', it will go into the primary slot. Keep in mind that the pistol slot by default will only accept weapons whose icon size is 2x1, but it is possible to change the size of the slot, and the icon size it will accept.
  06:38:30  2 October 2011
profilee-mailreply Message URLTo the Top
ZippyDSMlee
(Novice)
 
On forum: 09/10/2010
 

Message edited by:
ZippyDSMlee
10/03/2011 21:15:24
Messages: 28

---QUOTATION---
Pistols can be given automatic fire, it just takes a bit of time to rewrite the entire config.
Shotguns cannot be given decent automatic fire, as they will reload all shells immmediately. Besides, quickly pressing LMB actually fires faster than the weapons automatic fire, going from personal experience in CoP.

Weapons marked as secondary can only go into the secondary slot, and weapons marked as primary can only go into the primary slot.
---END QUOTATION---



So what needs to be changed?
==================
took it out to make reading the thread easier.
-------------------
Is there a mod able parent class for what tells what for the slot 1 and slot 2 parameter?
  02:42:37  2 October 2011
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6342
Pistols can be given automatic fire, it just takes a bit of time to rewrite the entire config.
Shotguns cannot be given decent automatic fire, as they will reload all shells immmediately. Besides, quickly pressing LMB actually fires faster than the weapons automatic fire, going from personal experience in CoP.

Weapons marked as secondary can only go into the secondary slot, and weapons marked as primary can only go into the primary slot.
  02:05:21  2 October 2011
profilee-mailreply Message URLTo the Top
ZippyDSMlee
(Novice)
 
On forum: 09/10/2010
Messages: 28
Give pistols and the spas12 fire modes?

I been looking through the files and can not see any automatic code code , the parent file for classes dose not seem to have it. Assault and submachime guns can do it but not pistols I can't find quite what to change other than fire mode but that seems to only be half of it.

Also what dose it take to make a weaopn either secondary or can work in both weaopn slots?
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2022 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.