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

1 2 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  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?
  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.
  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?
  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.
  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?
  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
  14:57:36  3 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
Going by my experience with the upgrade configs, I'd say no. The game only seems to recognize and parse certain parameters in the upgrade configs. I tried changing scope textures and npc visuals with upgrades, but it didn't work.
  17:38:28  3 October 2011
profilee-mailreply Message URLTo the Top
ZippyDSMlee
(Novice)
 
On forum: 09/10/2010
 

Message edited by:
ZippyDSMlee
10/03/2011 17:40:10
Messages: 28
Interesting I put slot=2 on the Markovs mag size upgrade and it did indeed make it a slot 2 weaopn.

So how do I add an upgrade, just add it to the weaopn and upgrade files?
*goes off to tinker with it some more*

damn crashy..... Ok so.....how do you add a upgrade?
And how do you make it a on/off upgraded? IE you can re buy it to turn it on/off
  18:25:45  3 October 2011
profilee-mailreply Message URLTo the Top
PhoenixHeart
Senior Resident
 

 
On forum: 10/22/2008
Messages: 1165
So it worked? Eeeeeenteresting. What does your config for that upgrade section look like now?
  18:58:20  3 October 2011
profilee-mailreply Message URLTo the Top
ZippyDSMlee
(Novice)
 
On forum: 09/10/2010
 

Message edited by:
ZippyDSMlee
10/03/2011 21:30:27
Messages: 28

---QUOTATION---
So it worked? Eeeeeenteresting. What does your config for that upgrade section look like now?
---END QUOTATION---



For the slot change? I just added slot = 2 to the mag up grade

============
[up_sect_h_pm]
cost = 80
value = +4
ammo_mag_size = 4
Slot = 2
============

For adding a new upgrade I added ,up_sect_z_pm to it with the cost and slot change then added it to the weaopn file, the trouble is now I dunno where else to add it this causes the game to crash.

I also tested
[prop_reliability]
name = st_prop_reliability
icon = ui_wp_propery_014
functor = inventory_upgrades.property_functor_z

tho I bet it calls to nothing LOL

I always try a bit at a time turn it on see if it works then try something else, I already rolled back to default files.
===============

How about this make a pistol automatic but work it in as so it starts in -1 or single fire mode, the first fire rate upgrade gives you full election 1, 3, -1, this way you have minimized adding stuff to the upgrade files. Would this be possible?

Still have to get a working automatic pistol,then figure out the shell load command in the shotgun file and try and make a new one with automatic settings.

============
Edit

Ok so what dose ammo elapse do? Its how many bullets are loaded is it not?

edit

How do I extract WP_SHOTG?
 
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-2021 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.