This also is pretty much what the Wiki says so I now would like to know how to set this up via cob...bobthedinosaur wrote:i think its only mod rules
Mod Question Repository... Questions come in, answers go out
Moderator: Moderators
-
- Posts: 1176
- Joined: 23 Aug 2007, 19:46
Re: Mod Question Repository... Questions come in, answers go out
Re: Mod Question Repository... Questions come in, answers go out
COBInstance.cpp or ask lurker
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2700
- Joined: 25 Aug 2004, 13:31
Re: Mod Question Repository... Questions come in, answers go out
can you detect a cloak on or off via cob or do you need lua to do that?
Re: Mod Question Repository... Questions come in, answers go out
Yes, you can GET CLOAK, which returns the current state of CLOAK, or WANT_CLOAK, that tells you a Unit is currently decloaked but will return to a cloaked state when it next meets the requirements to do so.
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2700
- Joined: 25 Aug 2004, 13:31
Re: Mod Question Repository... Questions come in, answers go out
cool. its just a 1 or 0 return right
Re: Mod Question Repository... Questions come in, answers go out
I have a few problems, I want a barrel to spin once it fires, around the y-axis, then the backend of the barrel will fire, then it will spin to the other side again, presumably jump to 0 to prevent large numbers and spring's hate of them.
Basically it would be a 2 firepoint system, or I could make it one firepoint that doesn't move.
Another thing I don't get, I want a fancy unit to work, after I get the basic scripting down, I'll need help to get the other parts of it done. It will be a tank with 2 forward guns, 1 artillery cannon on top, and side guns with high impulse. The vehicle will be able to go into "flight mode" when it's turned on, at the cost of energy and metal, while on ground, it will sink slightly, then move on the water's surface, and if it's in flight mode, it will continue to "fly" over it. I'll get back to you on this model if I have trouble with it. I mainly need to know, how do I make it know it's entered or exited water?
Basically it would be a 2 firepoint system, or I could make it one firepoint that doesn't move.
Another thing I don't get, I want a fancy unit to work, after I get the basic scripting down, I'll need help to get the other parts of it done. It will be a tank with 2 forward guns, 1 artillery cannon on top, and side guns with high impulse. The vehicle will be able to go into "flight mode" when it's turned on, at the cost of energy and metal, while on ground, it will sink slightly, then move on the water's surface, and if it's in flight mode, it will continue to "fly" over it. I'll get back to you on this model if I have trouble with it. I mainly need to know, how do I make it know it's entered or exited water?
Re: Mod Question Repository... Questions come in, answers go out
Hmph.
the first one is doable with a script.. but I'll not write it for you.
the second... look at the kampfer of gundam rts. whos script is conveniently in the mod resource thread. .
the first one is doable with a script.. but I'll not write it for you.
the second... look at the kampfer of gundam rts. whos script is conveniently in the mod resource thread. .
Re: Mod Question Repository... Questions come in, answers go out
I wasn't asking you to write anything, I was saying that I can't make it spin, nor does it turn after firing.
Re: Mod Question Repository... Questions come in, answers go out
there is code that is called when the weapon is fired. you can make your spin call there. really it isn't hard. unless I misunderstand your question it really isn't too bad and probably easier then you think.
Re: Mod Question Repository... Questions come in, answers go out
Sounds like he just wants to make a Buzzsaw.
Re: Mod Question Repository... Questions come in, answers go out
You can set all the flankingbonus settings in the fbi or with the script. You can only set the default mode in modrules, and I'm sorry for that lacking.
Re: Mod Question Repository... Questions come in, answers go out
Pxtl wrote:Sounds like he just wants to make a Buzzsaw.
Buzzsaw turns on the X-axis, mine will reuse the same barrel on firing, more or less as a fancy cooling system, and because it'll look cool. :Drcdraco wrote:I want a barrel to spin once it fires, around the y-axis
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Mod Question Repository... Questions come in, answers go out
rcdraco wrote:I wasn't asking you to write anything, I was saying that I can't make it spin, nor does it turn after firing.
Umm look in the cpweapon.bos on the evo svn (evolutionrts.info), you can pretty much copy pasta it as it looks very much believeable.
Umm in aim weapon it should be something to the tune of:
spin piecenum speed <100.000000>; // pick a number
Then in restoreafterdelay it would be something like:
stop-spin piecenum speed <20.000000>; //pick another number, generally slower than the spin up speed.
Make sure you look in the bos file tho as that syntax might be a little messed up cause I'm writing it from memory.
edit: grabbed the direct svn link this time: http://trac2.assembla.com/EvolutionRTS
- Pressure Line
- Posts: 2283
- Joined: 21 May 2007, 02:09
Re: Mod Question Repository... Questions come in, answers go out
i wrote a script to do this, its in this forum *somewhere*
Re: Mod Question Repository... Questions come in, answers go out
then use turn on y, what is the problem?
Re: Mod Question Repository... Questions come in, answers go out
Music ingame? How possible is this, and what do I need to do to get it.
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2700
- Joined: 25 Aug 2004, 13:31
Re: Mod Question Repository... Questions come in, answers go out
music in game huh? try http://www.winamp.com/player
Re: Mod Question Repository... Questions come in, answers go out
Binded to the mod at the least. It's mod question repository, not help/bugs.
Re: Mod Question Repository... Questions come in, answers go out
New question:
What is the difference between VETERAN_LEVEL (a cob call) and experience? Is there a way to convert between the two? If possible, can I get the VETERAN_LEVEL directly using lua?
What is the difference between VETERAN_LEVEL (a cob call) and experience? Is there a way to convert between the two? If possible, can I get the VETERAN_LEVEL directly using lua?
Re: Mod Question Repository... Questions come in, answers go out
Er, why would there be a difference? VETERAN_LEVEL lists the experience value multiplied by 100 (because COB doesn't do decimals).