Events and variables questions
I'm trying to make some interesting effects via recursion, but I'm running into brick walls trying to find the variables I need to look for. There's variable lists for what's returned and required by say, sysCreateWeaponFire, but what actual data is created for, say <OnFireWeapon>? I'm digging around in the cpp files and I see some references but I can't seem to find if there's a way to reference the shot made by <OnFireWeapon>, among other things. Is there a list I'm missing or is it just something I have to decipher from sifting through the code?
My first mod, mostly done, still balance testing.
http://xelerus.de/index.php?s=mod&id=789
http://xelerus.de/index.php?s=mod&id=789
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Can you put up a paste of what you have so far?
(or maybe not- I don't know if the paste still works :/ )
(or maybe not- I don't know if the paste still works :/ )
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Here's the bin: http://pastebin.com/gdqRmRyz
The event doesn't even seem to fire (the surrounding messages don't appear at all) so I'm wondering if I'm calling the function wrong, or what.
The event doesn't even seem to fire (the surrounding messages don't appear at all) so I'm wondering if I'm calling the function wrong, or what.
My first mod, mostly done, still balance testing.
http://xelerus.de/index.php?s=mod&id=789
http://xelerus.de/index.php?s=mod&id=789
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
I would guide you to the event stuff on the wiki that george has written, but it seems to be misplaced atm. The best recommendation would be to look up some of digdugs or atarlosts weapons mods. They have both use OnFireWeapon extensively.
-
- Fleet Officer
- Posts: 1533
- Joined: Tue Mar 22, 2011 8:43 pm
- Location: Alaska
- Contact:
alterecco wrote:I would guide you to the event stuff on the wiki that george has written, but it seems to be misplaced atm. The best recommendation would be to look up some of digdugs or atarlosts weapons mods. They have both use OnFireWeapon extensively.
Code: Select all
(block (targ)
(setq targ (objGetObjRefData gSource "Target"))
(sysCreateWeaponFire &vtShortMiningLaser; gSource (objGetPos gSource)
(sysVectorAngle (sysVectorSubtract (objGetPos targ) (objGetPos gSource))) 100 Nil)
; repeat 4 times because sysCreateWeaponFire ignores repeating attribute
(if (ls (objIncData gSource "Shots" 1) 4)
(sysAddObjTimerEvent 1 gSource "Fire")
etc, etc........
the code and orders are " Old " but they work, even in 1.08 .....
While I respect the more Code and Technique systems of others, Old School Simple still kicks Nuclear Reactor Butt on any ship in the Universe.
Flying Irresponsibly In Eridani......
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Here's the events page, if that helps any:alterecco wrote:I would guide you to the event stuff on the wiki that george has written, but it seems to be misplaced atm. The best recommendation would be to look up some of digdugs or atarlosts weapons mods. They have both use OnFireWeapon extensively.
http://wiki.neurohack.com/transcendence ... ing/events
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.