Home » MODDING HQ 1.13 » v1.13 Coding Talk » Create Cyborg IMP(half robot,half human)
Create Cyborg IMP(half robot,half human)[message #326439] Thu, 10 October 2013 17:47 Go to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
--------------------------------------
File: IMP Color Choosing.cpp
--------------------------------------
Line 175 Add:
BOOLEAN bIsCyborg=FALSE;

Line 178 change:
INT32 giIMPColorChoiceButton[ 12 ];
INT32 giIMPColorChoiceButtonImage[ 12 ];

Line 210 add:
void  BtnIMPToggleCyborgOption(GUI_BUTTON *btn,INT32 reason);

Line 229 add:
    bBadAss = FALSE;
    bIsCyborg = FALSE;

Line 477 change:
	//remove the buttons
	for(iCnt = 0; iCnt < sizeof(giIMPColorChoiceButton)/sizeof(INT32) ; iCnt++)

Line 513 add:
    //array init 
    for ( UINT8 i=0; iuiFlags & BUTTON_ENABLED)) {
        return;
    }


    if( reason & MSYS_CALLBACK_REASON_LBUTTON_DWN ) {
        if ( btn->uiFlags & BUTTON_CLICKED_ON ) {
            btn->uiFlags &= ~(BUTTON_CLICKED_ON);
            bIsCyborg = FALSE;
        }
        else if (  !(btn->uiFlags & BUTTON_CLICKED_ON) ) {
            btn->uiFlags |= (BUTTON_CLICKED_ON);
            bIsCyborg = TRUE;
        }
    }

}

BOOLEAN bCyborgSelected()
{
    return (bIsCyborg);
} 

[Updated on: Thu, 10 October 2013 17:50] by Moderator

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326440] Thu, 10 October 2013 17:51 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
--------------------------------------
File: IMP Color Choosing.h
--------------------------------------
BOOLEAN bCyborgSelected();

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326441] Thu, 10 October 2013 17:53 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
--------------------------------------
File: IMP Compile Character.cpp
--------------------------------------
void TransformCharacterBody(void)
{
    if ( bCyborgSelected() ) {
        gMercProfiles[ LaptopSaveInfo.iIMPIndex ].ubBodyType = ROBOTNOWEAPON;
    }
}

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326442] Thu, 10 October 2013 17:54 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
--------------------------------------
File: IMP Compile Character.h
--------------------------------------
void TransformCharacterBody(void);

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326443] Thu, 10 October 2013 17:55 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
You know you could just create a patch or diff from the repo and be done with it, right?

Report message to a moderator

Captain

Re: Create Cyborg IMP(half robot,half human)[message #326444] Thu, 10 October 2013 17:56 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
--------------------------------------
File: IMP Confirm.cpp
--------------------------------------
Line: 360
// write the created imp merc
WriteOutCurrentImpCharacter( ( UINT8 )( LaptopSaveInfo.iIMPIndex ) );

//to make Cyborg or Terminator.
TransformCharacterBody();

[Updated on: Thu, 10 October 2013 17:56] by Moderator

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326445] Thu, 10 October 2013 18:01 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
no , i don't know how to do,create a patch?

like use ida.exe to change exe code data?

someone tell to me if i want to join 113 team, i must finish my code first.

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326446] Thu, 10 October 2013 18:04 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
ok, and now we can build the cyborg.

use it enjoy.

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326459] Fri, 11 October 2013 00:18 Go to previous messageGo to next message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1961
Registered:October 2005
Location: Austria
scodec
no , i don't know how to do,create a patch?

like use ida.exe to change exe code data?

someone tell to me if i want to join 113 team, i must finish my code first.


please create a patchfile (*.patch) with the use of TorttoiseSVN. just to be sure to have the latest development code from svn together with your code changes. then click on create patch file from tortoise svn. upload the patch file and post the link here.

also make your new feature optional. just put a new entry (eg: ALLOW_CYBORG_IMP) in the ja2_options.ini file. If the feature is turned off, there should not be a toggle cyborg option in the imp screen.

[Updated on: Fri, 11 October 2013 00:25] by Moderator

Report message to a moderator

Sergeant Major

Re: Create Cyborg IMP(half robot,half human)[message #326460] Fri, 11 October 2013 00:33 Go to previous messageGo to next message
Parkan is currently offline Parkan

 
Messages:439
Registered:April 2010
Location: Russia,Sevastopol

What is a reason to create a cyborg?he became invulnerable or what?

Report message to a moderator

Master Sergeant
Re: Create Cyborg IMP(half robot,half human)[message #326463] Fri, 11 October 2013 03:55 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
invulnerable? no.

features like robots.

half human half robot.

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326464] Fri, 11 October 2013 05:19 Go to previous messageGo to next message
Asthner is currently offline Asthner

 
Messages:40
Registered:August 2010
Location: Poland, Lodz
That

Report message to a moderator

Corporal
Re: Create Cyborg IMP(half robot,half human)[message #326474] Fri, 11 October 2013 11:15 Go to previous messageGo to next message
silversurfer

 
Messages:2793
Registered:May 2009
One of the gameplay "features" is probably that ubBodyType = ROBOTNOWEAPON will cause lots of problems with the game code. Wink

Report message to a moderator

Lieutenant
Re: Create Cyborg IMP(half robot,half human)[message #326484] Fri, 11 October 2013 15:56 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
i use cybrog play game many times in ja2 1.12

i think i can fix it if in ja2 1.13 has problem.

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326485] Fri, 11 October 2013 16:35 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
I still don't really get it. Was all-IMP-blitzing through Arulco too difficult so we can now do it without pesky things like sleep and getting tired?

Report message to a moderator

Captain

Re: Create Cyborg IMP(half robot,half human)[message #326487] Fri, 11 October 2013 17:25 Go to previous messageGo to next message
John_5696 is currently offline John_5696

 
Messages:38
Registered:November 2009
Location: Mainland China
Cool, this means an early game Robot choice.
robot behaves entirely different from normal mercs, would give those yellow admins a great surprise.

Report message to a moderator

Private 1st Class
Re: Create Cyborg IMP(half robot,half human)[message #326492] Fri, 11 October 2013 18:27 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
RoWa21

please create a patchfile (*.patch) with the use of TorttoiseSVN. just to be sure to have the latest development code from svn together with your code changes. then click on create patch file from tortoise svn. upload the patch file and post the link here.

also make your new feature optional. just put a new entry (eg: ALLOW_CYBORG_IMP) in the ja2_options.ini file. If the feature is turned off, there should not be a toggle cyborg option in the imp screen.


hello RoWa21

this is a patch file.

http://code.google.com/p/aibattlefield/downloads/detail?name=CyborgIMP.patch&can=2&q=#makechanges

[Updated on: Fri, 11 October 2013 19:16] by Moderator

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326498] Fri, 11 October 2013 18:45 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
Cybrog's Main Features:
1. Cybrog does not need to be bandaged, like NEVER. (feature tested on 1.13)
2. Cybrog can be fixed through a medkit as well as a toolkit. Super. (NOT confirmed yet on 1.13)
3. Completely self-conscious and could climb up/down the roof easily. (feature tested on 1.13)
4. No worry about her energy coz she doesn't use any. (feature tested on 1.13)
5. No worry about enemy fists. Cyborg: What did you just say? (feature tested on 1.13)
6. Can stay at an enemy-controlled zone. (NOT confirmed yet on 1.13)
7. Cybrog will not be poisoned, will not black-out either. (NOT confirmed yet on 1.13)
8. Cybrog does not like to TALK.

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326502] Fri, 11 October 2013 19:13 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
DepressivesBrot
I still don't really get it. Was all-IMP-blitzing through Arulco too difficult so we can now do it without pesky things like sleep and getting tired?


hi DepressivesBrot

Cyborg is not t800(Terminator), it can be destoryed easily by an enemy just like common mercs.

[Updated on: Fri, 11 October 2013 19:14] by Moderator

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326505] Fri, 11 October 2013 19:57 Go to previous messageGo to next message
Gambigobilla

 
Messages:693
Registered:July 2008
It's way overpowered and imbalanced. While I appreciate every feature if they're optional, but this is just bordering on cheating.

Cybrog.

[Updated on: Fri, 11 October 2013 19:57] by Moderator

Report message to a moderator

First Sergeant
Re: Create Cyborg IMP(half robot,half human)[message #326506] Fri, 11 October 2013 20:29 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
IMPs are very strong mercs for a very cheap price. This thing spec'ed for combat is a veritable angel of death.

Report message to a moderator

Captain

Re: Create Cyborg IMP(half robot,half human)[message #326510] Fri, 11 October 2013 22:41 Go to previous messageGo to next message
tais

 
Messages:656
Registered:February 2008
Location: NL
there's easier ways to achieve this without messing up the code....

CTRL + (GABBI/IGUANA)
ALT + O

*ping* done!

Report message to a moderator

First Sergeant

Re: Create Cyborg IMP(half robot,half human)[message #326512] Fri, 11 October 2013 22:47 Go to previous messageGo to next message
lockie is currently offline lockie

 
Messages:3721
Registered:February 2006
Location: Scotland
Quote:
1. Cybrog does not need to be bandaged, like NEVER. (feature tested on 1.13)



Why not if half human ?

Quote:
2. Cybrog can be fixed through a medkit as well as a toolkit. Super. (NOT confirmed yet on 1.13)


Answered my question there ... Smile

Quote:
3. Completely self-conscious and could climb up/down the roof easily. (feature tested on 1.13)


Depends on the configuration of the cyborg , so I'm assuming human top half here !

Quote:
4. No worry about her energy coz she doesn't use any. (feature tested on 1.13)


Has to have a weakness , fuel or energy would be the top choice here , for balance , see ?

Quote:
5. No worry about enemy fists. Cyborg: What did you just say? (feature tested on 1.13)


Again , depends on the 'centaur' config. It has to be vulnerable to melee surely ?


Quote:
6. Can stay at an enemy-controlled zone. (NOT confirmed yet on 1.13)


What , like no-body will notice this half human half machine parked in the disabled space next to supermarket ? C'mon !




Quote:
7. Cybrog will not be poisoned, will not black-out either. (NOT confirmed yet on 1.13)


Do you mean drugs or gasses ? Cause , not to labour the point , which half is human , it has to breathe if the top half smiles .... :/


Quote:
8. Cybrog does not like to TALK.


There's a relief ! Thought you might steal Arnies voice from Terminator .... Ahll bee baakk !

Smile

Report message to a moderator

Captain

Re: Create Cyborg IMP(half robot,half human)[message #326513] Fri, 11 October 2013 22:57 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
You must think outside the box ...
or rather, think squishy bits inside, metal outside. Then add some nice artificial skin if you want and you covered all his postulated abilities.

While creating a boring super soldier with absolutely no business in the trunk.

Report message to a moderator

Captain

Re: Create Cyborg IMP(half robot,half human)[message #326515] Fri, 11 October 2013 23:22 Go to previous messageGo to next message
lockie is currently offline lockie

 
Messages:3721
Registered:February 2006
Location: Scotland
artificial skin ... hmm , not liking that , so... rubbery ...

:diabolical:
Anyway , the centaur look might be cool ! :laugh:

[Updated on: Fri, 11 October 2013 23:23] by Moderator

Report message to a moderator

Captain

Re: Create Cyborg IMP(half robot,half human)[message #326516] Fri, 11 October 2013 23:24 Go to previous messageGo to next message
tais

 
Messages:656
Registered:February 2008
Location: NL
Sounds close to robocop to me Depri, I can haz robocops auto pistol?

Report message to a moderator

First Sergeant

Re: Create Cyborg IMP(half robot,half human)[message #326518] Fri, 11 October 2013 23:28 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
Sounds like a way more sensible proposal.

Report message to a moderator

Captain

Re: Create Cyborg IMP(half robot,half human)[message #326519] Fri, 11 October 2013 23:34 Go to previous messageGo to next message
Parkan is currently offline Parkan

 
Messages:439
Registered:April 2010
Location: Russia,Sevastopol

http://www.youtube.com/watch?v=UuVphAuRo7Q

Report message to a moderator

Master Sergeant
Re: Create Cyborg IMP(half robot,half human)[message #326521] Fri, 11 October 2013 23:43 Go to previous messageGo to next message
tais

 
Messages:656
Registered:February 2008
Location: NL
Yeah just watched that trailer, I dont get that classic Robocop feeling from it... dunno..

Report message to a moderator

First Sergeant

Re: Create Cyborg IMP(half robot,half human)[message #326525] Sat, 12 October 2013 05:12 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
I think compile is easy thing, why no apply the patch and play game with it.

After completing this, I think we can better discuss it.

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326609] Mon, 14 October 2013 19:34 Go to previous messageGo to next message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1961
Registered:October 2005
Location: Austria
@all: should I apply the cyborg patch to the 1.13 source? it is completly optional (ja2_options.ini).

Report message to a moderator

Sergeant Major

Re: Create Cyborg IMP(half robot,half human)[message #326612] Mon, 14 October 2013 20:23 Go to previous messageGo to next message
Gambigobilla

 
Messages:693
Registered:July 2008
One suggestion; Make cyborg option available only after typing CTRL+GABBI, considering it's a downright cheat.

Report message to a moderator

First Sergeant
Re: Create Cyborg IMP(half robot,half human)[message #326613] Mon, 14 October 2013 20:28 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
Just how is this supposed to be balanced? Why would you ever NOT make a cyborg?
Edit:
I'm not principally against it, but tie it to some significant effort like clearing Orta Basement and only in SciFi or something.

[Updated on: Mon, 14 October 2013 20:37] by Moderator

Report message to a moderator

Captain

Re: Create Cyborg IMP(half robot,half human)[message #326614] Mon, 14 October 2013 21:31 Go to previous messageGo to next message
lockie is currently offline lockie

 
Messages:3721
Registered:February 2006
Location: Scotland
'Silent Storm' . Remember how little fun that was with the robot/soldier suits ?
Thumbs down for me , let him add it to his own game and do a playthrough , see if it is a good idea or not ?

Report message to a moderator

Captain

Re: Create Cyborg IMP(half robot,half human)[message #326653] Wed, 16 October 2013 14:01 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
The cyborg use robots handling code in the game. (AM_A_ROBOT macro)

some people think the robot code not funny, or cheating?

This will more than the zombie mode balance? i don't think so.

This is just a small change, and relative zombie mode, the basic balance without any influence.


Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326654] Wed, 16 October 2013 14:11 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
Gambigobilla
One suggestion; Make cyborg option available only after typing CTRL+GABBI, considering it's a downright cheat.


Say so, I think, you haven't really seen it.

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326655] Wed, 16 October 2013 14:20 Go to previous messageGo to next message
Gambigobilla

 
Messages:693
Registered:July 2008
This is the just exact opposite of zombie feature, zombies make game harder not easier. Also when game gets boring, activate zombies and voila, you have hard to kill enemies which rises time and time again and can poison you.

Quote:
This is just a small change, and relative zombie mode, the basic balance without any influence.

Quote:
Cybrog's Main Features:
1. Cybrog does not need to be bandaged, like NEVER. (feature tested on 1.13)
2. Cybrog can be fixed through a medkit as well as a toolkit. Super. (NOT confirmed yet on 1.13)
3. Completely self-conscious and could climb up/down the roof easily. (feature tested on 1.13)
4. No worry about her energy coz she doesn't use any. (feature tested on 1.13)
5. No worry about enemy fists. Cyborg: What did you just say? (feature tested on 1.13)
6. Can stay at an enemy-controlled zone. (NOT confirmed yet on 1.13)
7. Cybrog will not be poisoned, will not black-out either. (NOT confirmed yet on 1.13)
8. Cybrog does not like to TALK.


Please look at me in the eyes, and tell me this is balanced.

Report message to a moderator

First Sergeant
Re: Create Cyborg IMP(half robot,half human)[message #326656] Wed, 16 October 2013 15:15 Go to previous messageGo to next message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
In the process of playing a game mercenary has a very high chance died of bleeding? Or die of enemy attack by hand?

I think most of the mercenary on the battlefield, are shot or artillery fire cause of death.


1. Don't need to bandaged, do not represent won't hurt.
2. same as human or robot.
3. same as human
4. same as robot.
5. same as robot. Can still be hurt by the knife
6. same as robot.
7. same as robot.
8. same as robot.

I think the game balance is not the same as the game is difficult.
Into the enemy in the invincibility of the terminator robot, this is the balance??


[Updated on: Wed, 16 October 2013 15:23] by Moderator

Report message to a moderator

Private
Re: Create Cyborg IMP(half robot,half human)[message #326660] Wed, 16 October 2013 20:22 Go to previous messageGo to next message
Gambigobilla

 
Messages:693
Registered:July 2008
So this is your reasoning? It takes the best parts from both human and robot and if you consider it balanced i have no words.

I've made a 12.7mm sniper pistol it's balanced because
*its too light
-so is pistol
*it requires too little APs to fire
-so is pistol
*it's one handed
-so is pistol
*it has way too much damage/penetration
-so is sniper rifle
*it has so long range
-so is sniper rifle

For your reasoning this sniper pistol should be balanced.


Quote:
1. Cybrog does not need to be bandaged, like NEVER. (feature tested on 1.13)

I have occasions that my mercs died or incapacitated because they bled out.

Quote:
2. Cybrog can be fixed through a medkit as well as a toolkit. Super. (NOT confirmed yet on 1.13)

In early game you can easily run out of medkits but i don't remember the last time I've run out of toolkit.

Quote:
3. Completely self-conscious and could climb up/down the roof easily. (feature tested on 1.13)

Fair enough, this can be disregarded balancewise

Quote:
4. No worry about her energy coz she doesn't use any. (feature tested on 1.13)

I've lost many battles because i was ambushed while my mercs are tired.

Quote:
5. No worry about enemy fists. Cyborg: What did you just say? (feature tested on 1.13)

Consider this ; Merc opens door, sees enemy, enemy interrupts, enemy punches merc in the face, merc lost enough APs which won't regenerate for many turns, if enemy had shot my merc with his crappy pistol my merc wouldn't be dead

Quote:
6. Can stay at an enemy-controlled zone. (NOT confirmed yet on 1.13)

I couldn't care less but it could be exploited but whatever.

Quote:
7. Cybrog will not be poisoned, will not black-out either. (NOT confirmed yet on 1.13)
You won't get many occasions that mercs get poisoned but mercs easily get blacked-out by melee, tear gasses, stun grenades and even heavily armored mercs shot by sustained fire from light caliber guns.

Quote:
8. Cybrog does not like to TALK.

I would hardly call this as a penalty. As long as you have one non-cyborg merc you won't have a problem.


To sum it up if my mercs were cyborgs they i would have win 80% of battles i've lost. That is the most imbalanced feature suggestion I've ever seen. But I must confess as a mecha freak I would love to see this feature implemented if it's balanced and polished. Not requiring bandage and no loss of energy is just too great bonuses. Maybe it would require some other sort of energy (insert 15 volt batteries lol)

Report message to a moderator

First Sergeant
Re: Create Cyborg IMP(half robot,half human)[message #326680] Thu, 17 October 2013 16:56 Go to previous messageGo to previous message
scodec is currently offline scodec

 
Messages:19
Registered:October 2013
First of all, I think you use sniper gun example, inappropriate.
Pistols and sniper rifle is not something the same level.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Second, I think, when the game, you have a cyborg, you're not invincible, you still have to be careful careful, as we use the mercenaries, the enemy is very easy to destroy them.
I think if you can play in person, you will also think so.
Of course there is no denying that it will better than mercenaries. After all he is a cyborg. But I don't think, it will destroy the balance of the game.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Third, I think a balance in the minds of each is different, I usually play the most difficult 1.13, iron man mode, maybe I think balance is different from yours.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
In the end, this is just an option, and the default value is false, if you don't like it, don't open it. But I think if we were to be included in the, we can improve it, I think maybe one day, he may be a normal option.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
I do not want to quarrel with you, I think this is all for our favorite game.

Report message to a moderator

Private
Previous Topic: [FIX] improve loading speed of stash
Next Topic: AI light avoiding behavior
Goto Forum:
  


Current Time: Fri Mar 29 07:02:33 GMT+2 2024

Total time taken to generate the page: 0.02049 seconds