PDA

View Full Version : I need help in c++:(:(


nu||
19th July 2002, 07:16
Alright. I've spent about 30 hours the past week learning some of c++, and I don't really get any of it except the boolean stuff and the very basics. I don't get pointers arrays or anything. My first question is could any of you point me to quality tutorials, because I've been through about 4 without any luck.

My second question is: there's a game I play called c&c: renegade, and digging through its files I found an ini that contains information like which body parts take what damage. like this:;========================================== BODY LOCATIONS ====================

[ABDOMEN]
Name=K_ABDOMEN
ScreenName=Abdomen
DamageScale=1.0
BodyArea=Torso

[CHEST]
Name=K_CHEST
ScreenName=Chest
DamageScale=1.0
BodyArea=Torso

[HEAD]
Name=K_HEAD
ScreenName=Head
DamageScale=5.0
BodyArea=Head

[RCALF]
Name=K_R CALF
ScreenName=Right Calf
DamageScale=1.0
BodyArea=Leg

[LCALF]
Name=K_L CALF
ScreenName=Left Calf
DamageScale=1.0
BodyArea=Leg

[RFOOT]
Name=K_R FOOT
ScreenName=Right Foot
DamageScale=1.0
BodyArea=Leg

[LFOOT]
Name=K_L FOOT
ScreenName=Left Foot
DamageScale=1.0
BodyArea=Leg

[RFOREARM]
Name=K_R FOREARM
ScreenName=Right Forearm
DamageScale=1.0
BodyArea=Arm

[LFOREARM]
Name=K_L FOREARM
ScreenName=Left Forearm
DamageScale=1.0
BodyArea=Arm

[RHAND]
Name=K_R HAND
ScreenName=Right Hand
DamageScale=1.0
BodyArea=Arm

[LHAND]
Name=K_L HAND
ScreenName=Left Hand
DamageScale=1.0
BodyArea=Arm

[RTHIGH]
Name=K_R THIGH
ScreenName=Right Thigh
DamageScale=1.0
BodyArea=Leg

[LTHIGH]
Name=K_L THIGH
ScreenName=Left Thigh
DamageScale=1.0
BodyArea=Leg

[RUPPERARM]
Name=K_R UPPERARM
ScreenName=Right Upper Arm
DamageScale=1.0
BodyArea=Arm

[LUPPERARM]
Name=K_L UPPERARM
ScreenName=Left Upper Arm
DamageScale=1.0
BodyArea=Arm

[NECK]
Name=K_NECK
ScreenName=Neck
DamageScale=3.0
BodyArea=Head

[PELVIS]
Name=K_PELVIS
ScreenName=Pelvis
DamageScale=1.0
BodyArea=Torso

BUT, when i edit it, it wont let me play online. Could someone PLEASE tell me how i'd go about bypassing this? I would REALLY, REALLY appreciate it.

forgot to mention that this is running in its own proprietary engine

greenball
19th July 2002, 23:31
http://cplus.about.com/library/blcplustut.htm
this is a very nice tut

nu||
19th July 2002, 23:59
thank you..i'll look through it now..but no one can help me with the second thing? it would be a pretty big thing..you COULDNT die..please one of the more exerienced coders help me?

KeKs
20th July 2002, 14:24
you cant edit it , unless you are hosting a game.(not sure)
Like Rainbow Six
as host u could edit all the guns......

nu||
20th July 2002, 14:54
but i know theres some possible way to edit it IN game or make a hook for it, but im in no way familiar with file i/o or any of that, but i must say greenball, that is the most comprehensive tutorial i've come across, thank you:)

greenball
20th July 2002, 16:37
yes its the best c++ tut ive ever seen.
covers everything from pointers to vectors and arrays