Author Topic: [Code][WSE] Autofire script (video added) (single player)  (Read 4862 times)

0 Members and 1 Guest are viewing this topic.

Specialist

  • Master Knight
  • *
  • Coder
    • View Profile
  • Faction: Neutral
  • MP nick: TheSpecialist
  • WB
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #15 on: April 16, 2012, 09:55:08 PM »
Sorry for the necro, but did you end up updating the code or adding any new features? I'm in the process of trying to add my own way of reloading guns after X shots (by adding some random a** constants...not working too well)

Matthieu

  • Sergeant Knight
  • *
  • The proud Dutchman.
    • View Profile
  • Faction: Nord
  • MP nick: Matt
  • WB
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #16 on: April 19, 2012, 09:44:26 PM »
This is a slight bump, because I'd also like to know.

Specialist

  • Master Knight
  • *
  • Coder
    • View Profile
  • Faction: Neutral
  • MP nick: TheSpecialist
  • WB
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #17 on: April 19, 2012, 09:50:01 PM »
Another fun thing, with the new patch, you no longer need to worry about WSE for this code
All of it can be done in 1.151

teun557

  • Veteran
  • *
  • What is live worth when all else is gone?
    • View Profile
  • Faction: Bandit
  • MP nick: Teun
  • WB
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #18 on: May 05, 2012, 01:52:57 PM »
This is going to be great for the star wars mod im working on :D
Do you also have some of those models from the video availble?

Shredzorz

  • Grandmaster Knight
  • *
  • I was a banana in the street
    • View Profile
  • Faction: Neutral
  • MP nick: Shredzorz
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #19 on: May 06, 2012, 05:57:49 AM »
Another fun thing, with the new patch, you no longer need to worry about WSE for this code
All of it can be done in 1.151
Yes. This pleases me. As much as I love WSE, I love being able to avoid it even more.

This is going to be great for the star wars mod im working on :D
Do you also have some of those models from the video availble?
Sorry, those models are for a mod I'm working on and aren't available for other people to use. At least not at the moment. Who knows what may happen in the future.


Also, I've started working on my Star Wars mod again after taking a short break, so that means I've started refining and improving this script again as well. There should be a better version of it available soon.

teun557

  • Veteran
  • *
  • What is live worth when all else is gone?
    • View Profile
  • Faction: Bandit
  • MP nick: Teun
  • WB
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #20 on: May 06, 2012, 01:22:18 PM »
Another fun thing, with the new patch, you no longer need to worry about WSE for this code
All of it can be done in 1.151
Yes. This pleases me. As much as I love WSE, I love being able to avoid it even more.

This is going to be great for the star wars mod im working on :D
Do you also have some of those models from the video availble?
Sorry, those models are for a mod I'm working on and aren't available for other people to use. At least not at the moment. Who knows what may happen in the future.


Also, I've started working on my Star Wars mod again after taking a short break, so that means I've started refining and improving this script again as well. There should be a better version of it available soon.

How far is this star wars mod from done? because im also working on one with someone else, together we might get a faster end product

Shredzorz

  • Grandmaster Knight
  • *
  • I was a banana in the street
    • View Profile
  • Faction: Neutral
  • MP nick: Shredzorz
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #21 on: May 06, 2012, 07:33:31 PM »
Another fun thing, with the new patch, you no longer need to worry about WSE for this code
All of it can be done in 1.151
Yes. This pleases me. As much as I love WSE, I love being able to avoid it even more.

This is going to be great for the star wars mod im working on :D
Do you also have some of those models from the video availble?
Sorry, those models are for a mod I'm working on and aren't available for other people to use. At least not at the moment. Who knows what may happen in the future.


Also, I've started working on my Star Wars mod again after taking a short break, so that means I've started refining and improving this script again as well. There should be a better version of it available soon.

How far is this star wars mod from done? because im also working on one with someone else, together we might get a faster end product
It's still quite from far from being finished. And while I appreciate the offer to work together, I usually prefer to work by myself. I'm really a horrible control freak and like to be in control of every aspect of the mod. :P

teun557

  • Veteran
  • *
  • What is live worth when all else is gone?
    • View Profile
  • Faction: Bandit
  • MP nick: Teun
  • WB
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #22 on: May 07, 2012, 03:15:22 PM »
Another fun thing, with the new patch, you no longer need to worry about WSE for this code
All of it can be done in 1.151
Yes. This pleases me. As much as I love WSE, I love being able to avoid it even more.

This is going to be great for the star wars mod im working on :D
Do you also have some of those models from the video availble?
Sorry, those models are for a mod I'm working on and aren't available for other people to use. At least not at the moment. Who knows what may happen in the future.


Also, I've started working on my Star Wars mod again after taking a short break, so that means I've started refining and improving this script again as well. There should be a better version of it available soon.

How far is this star wars mod from done? because im also working on one with someone else, together we might get a faster end product
It's still quite from far from being finished. And while I appreciate the offer to work together, I usually prefer to work by myself. I'm really a horrible control freak and like to be in control of every aspect of the mod. :P

oh sure, we could exchange models if you like though, ive got some blasters you might want

Shredzorz

  • Grandmaster Knight
  • *
  • I was a banana in the street
    • View Profile
  • Faction: Neutral
  • MP nick: Shredzorz
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #23 on: May 07, 2012, 09:25:21 PM »
Another fun thing, with the new patch, you no longer need to worry about WSE for this code
All of it can be done in 1.151
Yes. This pleases me. As much as I love WSE, I love being able to avoid it even more.

This is going to be great for the star wars mod im working on :D
Do you also have some of those models from the video availble?
Sorry, those models are for a mod I'm working on and aren't available for other people to use. At least not at the moment. Who knows what may happen in the future.


Also, I've started working on my Star Wars mod again after taking a short break, so that means I've started refining and improving this script again as well. There should be a better version of it available soon.

How far is this star wars mod from done? because im also working on one with someone else, together we might get a faster end product
It's still quite from far from being finished. And while I appreciate the offer to work together, I usually prefer to work by myself. I'm really a horrible control freak and like to be in control of every aspect of the mod. :P

oh sure, we could exchange models if you like though, ive got some blasters you might want
Thanks, but I've already got almost all the blasters I need already finished or in progress.

ThaneWulfgharn

  • Master Knight
  • *
  • ALL HAIL THE ALLFATHER!!!
    • View Profile
  • Faction: Nord
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #24 on: June 21, 2012, 12:25:32 PM »
Pls...someone do this for 1.153!!!!!!!!!!!!
Odin, Alfaðir,
Blindi Báleygr,
Draugadróttin,
Foldardróttinn,
Hangi Haptaguð,
Hrafnáss Hildolfr,
Geirvald-Viðrir,
Jormundkarl,
Runatyr Galdraföðr,
Rognir Runni vagna,
Sviðurr Sváfnir,
Þuðr Váfuðr,
Yggr-Yrungtyr,

Specialist

  • Master Knight
  • *
  • Coder
    • View Profile
  • Faction: Neutral
  • MP nick: TheSpecialist
  • WB
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #25 on: June 21, 2012, 02:27:22 PM »
Pls...someone do this for 1.153!!!!!!!!!!!!
Why don't you? It would take 5 minutes to replace all instances of "spawn_missile" with "add_missile" or whatever the new command is.

ThaneWulfgharn

  • Master Knight
  • *
  • ALL HAIL THE ALLFATHER!!!
    • View Profile
  • Faction: Nord
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #26 on: June 21, 2012, 02:43:18 PM »
It says "item_get_speed_rating" is not defined.
Odin, Alfaðir,
Blindi Báleygr,
Draugadróttin,
Foldardróttinn,
Hangi Haptaguð,
Hrafnáss Hildolfr,
Geirvald-Viðrir,
Jormundkarl,
Runatyr Galdraföðr,
Rognir Runni vagna,
Sviðurr Sváfnir,
Þuðr Váfuðr,
Yggr-Yrungtyr,

SheriffTheRevenger

  • Guest
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #27 on: December 29, 2012, 07:27:42 PM »
I get the same error!

No name

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #28 on: April 14, 2013, 09:30:00 PM »
Hey guys, if any of you got problems with the reload speed, i got a solution here. Some of you might notice that if you set a high rate of fire, your reload speed will be very slow and vice verse.

In the autofire script, the rate of fire is inversely proportional to speed_rating (ie low number = high rate of fire), and reload speed is directly proportional to speed_rating,

What i did was to modify the module_mission_template.py file, replacing the autofire script's "item_get_speed_rating" with "item_get_missile_speed". This makes use of the unused "shoot_speed (aka missile_speed)" value which is now the rate of fire, and "spd_rtng (aka speed_rating)" as the reload speed. Seems that this method works well enough. There should be only 3 replacements needed, 1 for common_fire_automatic and 2 for common_ai_fire_automatic. Please don't replace every single "item_get_speed_rating" in the entire file.

Hope it helps.  :D

HungKnight

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [Code][WSE] Autofire script (video added) (single player)
« Reply #29 on: May 30, 2014, 10:43:34 AM »
How to this activity with 1.158 ?? Thank