September 20, 2020, 22:39:27

Author Topic: Kamikazes in Nexus?!?!  (Read 9005 times)

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Kamikazes in Nexus?!?!
« on: October 04, 2011, 04:01:54 »
I forgot to mention this...

i was messing around with the tacticstypes.ini (PROPERLY) for the skirmisher at normal settings, if you set the type to 4 for any weapon thats equipped on a certain ship, the ship literally goes flying at the target!

could it be possible to make a kamikaze move after this?  ???
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #1 on: October 04, 2011, 04:59:18 »
We're implemented it in the stargate mod. But it's not very convincing... the ship moves wildly and withouth control...

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #2 on: October 07, 2011, 21:46:30 »
Maybe there is away to reduce the wild spinning factor? i think if we made a machine for this it could be really good for fighter craft, if we make it so that they will ONLY do it on low health, and if the enemy ship's shields are down.

i think the deleteship code would be implemented in the machine, as well as a few things from the skirmisher generated default_ai.mach's that it creates for each mission you create.
« Last Edit: October 19, 2011, 22:39:59 by The_Small_Time_Modder »
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #3 on: October 08, 2011, 00:22:22 »
On a fighter it could be done easily. The spinning factor will much less noticed there (and no, you can't reduce it). Just add it as a weapon the fighter (let's say fighters and gunboats, not bombers, they're too big and slow to be kamikases). So, with that weapon added the secondary weapon option for the fighter will be enabled, and when you click that and on a target the kamikase weapon will be activated and the fighter will collide with the target.

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #4 on: October 08, 2011, 19:32:51 »
Nice going mularac!  ;)

I was right, you ARE a genius when it comes to coding for this game...

Anyway, just to clarify some things, how much damage do you think this should inflict? and could an impact effect be added to this? (such as the plasma gun's impact effect?)
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #5 on: October 08, 2011, 19:44:56 »
well... in reality I doubt a colliding fighter would do more damage than one hit from the gaitling gun... but gameplay wise, I think that yeah, the equivalent to a plasma gun impact should do it.

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #6 on: October 09, 2011, 19:44:59 »
sweet...

Im benefiting from this site more than i thought i would...  ;D

now to the important part, what do you think this machine would look like in coding? I think a bunch of people would like to get their hands on this stuff...  8)
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #7 on: October 09, 2011, 20:27:22 »
No need to code a machine and state and that, this can be done easily from the tacticstype alone.

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #8 on: October 14, 2011, 00:01:24 »
Alright, then what would that look like? in your opinion?  :-\
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #9 on: October 14, 2011, 00:20:04 »
The weapon should look something like this:

Code: [Select]
DEVICETYPE 120
Name "Collision"
Category 1
Civilization 0
Sets 2 30 31 ;
Purpose 2 ;
HitChanceCat 10
AutoDistance 5000
DeviceHitChance 1
MaxCount 1
CountDec 2
Charge 1
EnergyIn 12
PenetrateShield 1
DamageShield 10
DamageHull 750
DamageDevice 60
Detected 95
Scanned 100
HPmax 1000
Start 2 9000 332 0
Travel 5 5500 0 8.5
End 1 0 0 0.65
Available
InstallRP 5
DEVICETYPE

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #10 on: October 14, 2011, 03:38:02 »
sweet!

i might use this for something in the near future...
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #11 on: October 14, 2011, 05:31:30 »
ok. Be sure to check it first. I didn't :P

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #12 on: October 14, 2011, 21:09:09 »
On a side note, where would you stick that in? and if in multiple files, which ones?
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #13 on: October 14, 2011, 22:16:17 »
That goes in the Tacticstype.ini. Are you familiar with that file?

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #14 on: October 15, 2011, 23:25:11 »
Yes i am fimiliar with that file....

i previously have tried to create new weapons using what the game provided with no success at all though...

does it matter where i put it in the weapons section of the TacticsType.ini?
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #15 on: October 15, 2011, 23:59:42 »
nope. Just make sure that the index number is unique. Also, you'll have to add that weapon to the fighter's arsenal.

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #16 on: October 18, 2011, 23:31:15 »
how would you properly do the latter? i also tried that and i think thats what messed up my attempt to create a new ship class based off the battleship.
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #17 on: October 18, 2011, 23:56:54 »
For example, let's say that the devicetype of the weapon is 120 and we want to add it to nexus' regular fighter:
All you have to do is add "120" to the defDevices line and an other slot for said device, like this:


SHIPCLASS 18
   Name "cls_Fighter"
   Mesh "earth\main\fighter"
   GUIIcon "icons\e_fighter"
   ImpactEfx 1 0.1
   FinalEfx 1 0.3
   ChannelEfx 3 1
   Civilization 0
   Velocity 450
   RotVelFact 10000
   RangeBehav 2 2
   Behaviour 0
   TargetType 2
   SupportOutput 10
   HPmax 12
   Slots 31   39 31 ;
   Slots 51 ;
   Slots 71 ;
   DefDevices 32/1000 120/1000 35 255 322 ;
   Available
SHIPCLASS

Do that with all the other fighters and it should work. Haven't tested it, though.
« Last Edit: October 19, 2011, 00:11:03 by Mularac »

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #18 on: October 19, 2011, 22:42:40 »
if you ever test it let me know, and if possible, whenever you do test it take a few screenshots for the world to see.

I know you can do it while testing a mission in the editor, so no need to worry about that.
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #19 on: October 19, 2011, 22:58:25 »
I already tested it and it works ok, if you want to include it in your mod you're welcome to do so.

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #20 on: October 19, 2011, 22:59:52 »
Sweet, thanks mularac!

I wonder what kind of crazy thing i will run into next....  :o
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.

Offline The_Small_Time_Modder

  • Petty Officer
  • **
  • Posts: 126
  • Karma: 0
  • Watch out batman! here comes CHUCK NORRIS!
    • View Profile
Re: Kamikazes in Nexus?!?!
« Reply #21 on: October 21, 2011, 22:43:21 »
Im thinking of creating a whole new race that uses this tactic, im not so sure on it though, since i lack a modelling program.

I might be able to make the weapons, shields and supports unique to the race however.
Epic win = when bullets dodge YOU.

Nothing can contend with that. Unless if you can travel through time and space.