Reminder: Internet Explorer 6 or below are NOT supported.





There are currently 39 users playing Freelancer on
42 servers. | September. 21, 2023 |
Browsing this Thread:
1 Anonymous Users
Adding arbitrary new gun classes |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Hi folks,
I've been working with Laz to try and create a plugin that adds arbitrary gun/turret classes to ships and equipment, we were able to get one class working through coincidence (hp_type of 67) but have hit a bit of a roadblock. I know something similar has been done before using Adoxa's engclass plugin. I've attached Laz's cliff notes that explain our specific problem below, as he's not able to currently post to TSP! Does anyone have any pointers for us? Quote:
Posted on: 5/14 11:51
|
|||
|
Re: Adding arbitrary new gun classes |
||||
---|---|---|---|---|
Just can't stay away
![]() ![]() Joined:
2012/5/22 20:21 Group:
Registered Users
Posts:
254
![]() |
There's another way to achieve what you're doing using all the standard stuff already present, with minimal coding.
You can simply assign a weapon class to a certain ship type. For example, Class 1 = Light fighter Class 2 = Medium Fighter Class 3 = VHF And so on. That way you end up with 10 different weapon classes for ten different types of ship. Only coding you have to do is change the weapon class description in the dll's. One way to do it anyway. Unless you're trying to do something different and i completely misunderstood ![]()
Posted on: 5/14 13:47
|
|||
|
Re: Adding arbitrary new gun classes |
||||
---|---|---|---|---|
Quite a regular
![]() ![]() Joined:
2008/2/14 21:37 From İstanbul, Turkey
Group:
Registered Users Wiki editors $$$ Supporters $$$
Posts:
176
![]() |
Thanks for the pointers, but we're trying to do something entirely different! The way weapon classes are set up in the mod we're working on unfortunately requires more than the 20 or so that Freelancer provides.
The idea here would be to allow users of the plugin to arbitrarily add another set of class 1-10 hard-points, so you'd have hp_gun_special_1-10 , hp_turret_special_1-10 , and then your own hp_gun_new_1-10 , all named and defined appropriately via an ini file!
Posted on: 5/14 14:45
|
|||
|