|
You last visited: Today at 22:49
Advertisement
[Questions] another Fail... :D
Discussion on [Questions] another Fail... :D within the CO2 Private Server forum part of the Conquer Online 2 category.
07/06/2012, 16:38
|
#1
|
elite*gold: 0
Join Date: Aug 2008
Posts: 94
Received Thanks: 19
|
[Questions] another Fail... :D
well .... im trying to code new source( everybody does now ,so im trying ... ) .
coded Npc Item Monster client map
each is a class has no relation to another
the question is ... how can i put those as an Object for Map class 
no code needed . just hint what should i do .
|
|
|
07/06/2012, 18:00
|
#2
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
What do you mean?
|
|
|
07/06/2012, 18:46
|
#3
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
From the looks of it, he created an NPC with the lookface of a monster. He wants to make it a map object or static object instead.
|
|
|
07/06/2012, 18:59
|
#4
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
I think its much simpler than that, he just wants to store objects on a map, such as monsters, players, npcs, items etc.
|
|
|
07/07/2012, 00:44
|
#5
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
His usage of words confuses me, seriously. I don't think he even understand the words he's using rofl.
|
|
|
07/07/2012, 09:54
|
#6
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Quote:
Originally Posted by romeoromeo
well .... im trying to code new source( everybody does now ,so im trying ... ) .
coded Npc Item Monster client map
each is a class has no relation to another
the question is ... how can i put those as an Object for Map class 
no code needed . just hint what should i do .
|
Well All i understood from This is :-
You Coded Npc , Items , Monster , Client , Map as Ceparate Classes that arent connected to each other and you asking How to connect them with each other so u can use em .. Here You Are
In Client Class you can make Smthing like that
This would Allow you to use the Npc Class inside Client One And Dont forget to set NewInstance to New Npc(); once u would like to use it
|
|
|
07/07/2012, 12:49
|
#7
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
Quote:
Originally Posted by shadowman123
Well All i understood from This is :-
You Coded Npc , Items , Monster , Client , Map as Ceparate Classes that arent connected to each other and you asking How to connect them with each other so u can use em .. Here You Are
In Client Class you can make Smthing like that
This would Allow you to use the Npc Class inside Client One And Dont forget to set NewInstance to New Npc(); once u would like to use it
|
Not when he wants to use it, but when his class is initialized, hence why constructors exist.
|
|
|
07/07/2012, 17:09
|
#8
|
elite*gold: 0
Join Date: Aug 2008
Posts: 94
Received Thanks: 19
|
Greetings , thanks for all who replyed ...
exactly like Korvacs explained .
how to store (npc , mob , client , flooritem) as objects on map .
incase if i want to count all objects on map (for example ) i count all as map_object Not as npc + mob + ...........
i think i found the answer ........ which is :
make class object and inherit from it for all (player, mob , npc ... )
if that is it ... then
#request close ...
|
|
|
07/07/2012, 19:33
|
#9
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Quote:
Originally Posted by romeoromeo
Greetings , thanks for all who replyed ...
exactly like Korvacs explained .
how to store (npc , mob , client , flooritem) as objects on map .
incase if i want to count all objects on map (for example ) i count all as map_object Not as npc + mob + ...........
i think i found the answer ........ which is :
make class object and inherit from it for all (player, mob , npc ... )
if that is it ... then
#request close ...
|
Hmm Inherting 4 Classes ?? Y So you could set Instances from their Classes then use em Insted of Inherting ...idk which is better but thats what came into my mind anyways GL Dude
|
|
|
Similar Threads
|
Intervention Fail | Quickscope Fail | Lobby Fail
08/11/2011 - Call of Duty - 16 Replies
Hallo Leute,
Zuerst zum Intervention Fail:
ich habe seit einiger Zeit in MW2 das Problem, dass ich nurnoch Hitmaker bekomme. Ich benutze eine Intervention mit Vollmantelgeschoss und Feuerkraft(Pro) Egal ich ich stundenlang ziele, oder einen Quickscope mache, ich bekomme einfach nur einen Hitmaker.
Eines meiner neusten Probleme ist, dass die Intervention garnicht mehr trifft. Egal ob Quickscope oder Hardscope, der Schuss geht daneben. In 70% der Fälle. selbst wenn ich genau vor dem...
|
GRÖSSTER FAIL EINES MODERATOREN ! SO EIN EPIC FAIL WIE NOCH NIE !
08/10/2011 - Off Topic - 5 Replies
.
|
All times are GMT +1. The time now is 22:51.
|
|