Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Wireframe Mode C++
Wireframe Mode C++ [message #331069] Sun, 18 May 2008 16:11 Go to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
For all Peoples who wanted to Test the Wireframe Mode, here a Code to Toggle it ON and OFF. Scripts 2.9.2 are needed!

Commands: !on and !off

Heres a Code to Enable Wireframe Mode:

class W3ChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
	Set_Wireframe_Mode(2);
	}
};

ChatCommandRegistrant<W3ChatCommand> W3ChatCommandReg("!on",CHATTYPE_ALL,0,GAMEMODE_AOW);


Heres a Code to Disable Wireframe Mode:


class WChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
	Set_Wireframe_Mode(0);
	}
};
ChatCommandRegistrant<WChatCommand> WChatCommandReg("!off",CHATTYPE_ALL,0,GAMEMODE_AOW);


[Updated on: Sun, 18 May 2008 16:11]

Report message to a moderator

Re: Wireframe Mode C++ [message #331071 is a reply to message #331069] Sun, 18 May 2008 16:14 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Heres a Ingame Picture:
  • Attachment: Wire.jpg
    (Size: 492.90KB, Downloaded 172 times)
Re: Wireframe Mode C++ [message #331072 is a reply to message #331069] Sun, 18 May 2008 16:47 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
sweet thanks man!

few questions


1)how can you make it so only your charecter goes into that mode?
2)can everyone see it? or just you?



also why is it 2 not 1?

[Updated on: Sun, 18 May 2008 16:50]

Report message to a moderator

Re: Wireframe Mode C++ [message #331073 is a reply to message #331069] Sun, 18 May 2008 16:49 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
wont seem to work for me and i just copied and pasted the code u posted any ideas?

[Updated on: Sun, 18 May 2008 20:41]

Report message to a moderator

Re: Wireframe Mode C++ [message #331176 is a reply to message #331069] Mon, 19 May 2008 10:19 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
All see this when they have Scripts 2.9.2
Re: Wireframe Mode C++ [message #331196 is a reply to message #331176] Mon, 19 May 2008 12:41 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
madrackz wrote on Mon, 19 May 2008 10:19

All see this when they have Scripts 2.9.2

my server inc myself client side have 3.4.4
so why wont it work?

[Updated on: Mon, 19 May 2008 12:57]

Report message to a moderator

Re: Wireframe Mode C++ [message #331215 is a reply to message #331072] Mon, 19 May 2008 16:09 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
SSnipe wrote on Mon, 19 May 2008 00:47

1)how can you make it so only your charecter goes into that mode?


That's not possible, the graphics engine doesn't support that. Many graphics engines don't support wireframe for particular models, all the code is telling the engine to do it miss out the step the engine takes to fill in the polygons.
Re: Wireframe Mode C++ [message #331218 is a reply to message #331069] Mon, 19 May 2008 16:16 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Umm, actually it *is* possible to only make a single item wireframe, but it involves hooking the engine drawing code and setting the DX device to wireframe mode and then back again after rendering.

http://steamsignature.com/card/1/76561197975867233.png
Re: Wireframe Mode C++ [message #331219 is a reply to message #331218] Mon, 19 May 2008 16:18 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
danpaul88 wrote on Tue, 20 May 2008 00:16

Umm, actually it *is* possible to only make a single item wireframe, but it involves hooking the engine drawing code and setting the DX device to wireframe mode and then back again after rendering.


But that's ugly though >.>;
Re: Wireframe Mode C++ [message #331223 is a reply to message #331069] Mon, 19 May 2008 18:52 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
idk all i know it i got latest scripts and i did the chat hook and nothing!!!!!! Sad
Re: Wireframe Mode C++ [message #331239 is a reply to message #331069] Mon, 19 May 2008 23:42 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
maybe its my vid card? server settings?
Re: Wireframe Mode C++ [message #331293 is a reply to message #331069] Tue, 20 May 2008 10:41 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Scripts 3.4.4 is bugged! you need 2.9.2 to see the Wireframe Mode!
Re: Wireframe Mode C++ [message #331306 is a reply to message #331293] Tue, 20 May 2008 13:01 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
madrackz wrote on Tue, 20 May 2008 10:41

Scripts 3.4.4 is bugged! you need 2.9.2 to see the Wireframe Mode!

*waits for johnwil to see this*
Re: Wireframe Mode C++ [message #331320 is a reply to message #331069] Tue, 20 May 2008 14:18 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Im sure jonwil doesnt care about that
Re: Wireframe Mode C++ [message #331324 is a reply to message #331320] Tue, 20 May 2008 14:40 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
madrackz wrote on Tue, 20 May 2008 14:18

Im sure jonwil doesnt care about that

well if its a glicth he should
Re: Wireframe Mode C++ [message #331450 is a reply to message #331069] Wed, 21 May 2008 21:57 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
I never knew the W3D engine could handle this! (exception of the LE rendering engine)

Any chance we can have this as a script in the next release?
JFW_Custom_Enable_WireframeMode


WOL: Veyrdite Previously: Dthdealer ( a long time ago )
Re: Wireframe Mode C++ [message #331455 is a reply to message #331450] Wed, 21 May 2008 22:18 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
Dthdealer wrote on Wed, 21 May 2008 21:57

I never knew the W3D engine could handle this! (exception of the LE rendering engine)

Any chance we can have this as a script in the next release?
JFW_Custom_Enable_WireframeMode

john wil have u seen this message yet? you said report any errors in this mode will this post is one Very Happy
Re: Wireframe Mode C++ [message #331487 is a reply to message #331069] Thu, 22 May 2008 01:32 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
What custom do you exactly want to turn on Wireframe Mode? thats easy to do in C++ dude
Re: Wireframe Mode C++ [message #331624 is a reply to message #331069] Fri, 23 May 2008 04:06 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
C++ is server-only, and cannot be added to a map file.

I'm going to put a wire frame texturing(UVW mapping)tutorial on RenHelp.net soon, just to let everyone know.


WOL: Veyrdite Previously: Dthdealer ( a long time ago )

[Updated on: Fri, 23 May 2008 04:08]

Report message to a moderator

Re: Wireframe Mode C++ [message #331640 is a reply to message #331624] Fri, 23 May 2008 07:24 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Dthdealer wrote on Fri, 23 May 2008 06:06

C++ is server-only, and cannot be added to a map file.

I'm going to put a wire frame texturing(UVW mapping)tutorial on RenHelp.net soon, just to let everyone know.

I think you can with Daves arrow
Re: Wireframe Mode C++ [message #331645 is a reply to message #331640] Fri, 23 May 2008 07:46 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
madrackz wrote on Fri, 23 May 2008 07:24

Dthdealer wrote on Fri, 23 May 2008 06:06

C++ is server-only, and cannot be added to a map file.

I'm going to put a wire frame texturing(UVW mapping)tutorial on RenHelp.net soon, just to let everyone know.

I think you can with Daves arrow

now you know mad is gonna try it Razz
Re: Wireframe Mode C++ [message #331689 is a reply to message #331069] Fri, 23 May 2008 14:44 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Temp a Dave's Arrow, name it "Wireframe" add JFW_Wireframe_Mode (jfwmisc.h/cpp), then use another script to create said object (it sets wireframe mode on creation)
Re: Wireframe Mode C++ [message #331717 is a reply to message #331069] Fri, 23 May 2008 17:27 Go to previous message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
Thankyou.

WOL: Veyrdite Previously: Dthdealer ( a long time ago )
Previous Topic: Infinite Ammo Mod
Next Topic: BFd blog 26
Goto Forum:
  


Current Time: Fri Jan 10 21:53:46 MST 2025

Total time taken to generate the page: 0.01153 seconds