Developer Insight Requested!

A place to discuss Custom additions to Dystopia.

Moderator: Forum Moderators

Developer Insight Requested!

Postby kameroti » Thu Nov 17, 2011 1:48 pm

Hello,

I need a func_rotating that does energy draining rather than physical damage to the players. Is it possible to find/duplicate the code that makes func_rotating work and switch it's code to drain energy as well...?

If so, where would I find that logic in the source/dystopia GCF's?

-- Kameroti
(Yes, I'm still alive...)
User avatar
kameroti
 
Posts: 507
Joined: Mon May 22, 2006 5:08 pm
Location: Colorado, USA

Re: Developer Insight Requested!

Postby Fedio » Thu Nov 17, 2011 8:27 pm

func_rotating cannot drain energy. Your best bet would be to set the func_rotating to have 0 damage and then add a cyber_drain brush and parent it to the func_rotating. That way the cyber_drain brush will move with the func_rotating brush.

But if I remember correctly, I think adding func_rotating in cyberspace caused a lot of network lag. I would check with Hyphenated to see if he was able to fix that.

-Fedio
Fedio
Physical Adept
 
Posts: 246
Joined: Tue Dec 06, 2005 3:05 am
Location: Pennsylvania

Re: Developer Insight Requested!

Postby Spire » Thu Nov 17, 2011 10:04 pm

I think a few func_rotating objects in your map would be fine, just be reasonable about how many you use.
Spire
Puny Human staff
 
Posts: 544
Joined: Fri Jun 09, 2006 4:00 am
Real Name: Samuel Rice
Yahoo Messenger: Samuel Rice
Location: San Diego, California, USA

Re: Developer Insight Requested!

Postby Hyphen-ated » Thu Nov 17, 2011 10:28 pm

Cyberspace is the second-most-expensive place to put func_rotatings, because usually their angle will get transmitted every frame to every player who is anywhere near a JIP. (the most expensive place is the skybox, because then it gets sent to every player, always. Don't put rotatings in the skybox, please. Same goes for trains)

Like Spire said, it's okay to use a few. It only becomes a problem when there's too much network traffic on the map. You can use net_graph 4 to see if there's a problem. You want the graph to be as low as possible.
User avatar
Hyphen-ated
Team Dystopia
Team Dystopia
 
Posts: 871
Joined: Sat Aug 04, 2007 8:27 am

Re: Developer Insight Requested!

Postby kameroti » Fri Nov 18, 2011 1:48 pm

func_rotating cannot drain energy. Your best bet would be to set the func_rotating to have 0 damage and then add a cyber_drain brush and parent it to the func_rotating. That way the cyber_drain brush will move with the func_rotating brush.
Very first thing I tried many years ago, unfortunately if a player blocks the func_rotating the cyber_drian then gets unsynced with it.

My hope was, as the developers made cyber_drain, seeing if I could dupe the code for func_rotating and just switch it's damage to energy...

-- Kameroti
User avatar
kameroti
 
Posts: 507
Joined: Mon May 22, 2006 5:08 pm
Location: Colorado, USA


Return to “%s” Dystopia Custom Content

Who is online

Users browsing this forum: No registered users and 1 guest

Home | News | Overview | Download | Media | Forum | .Plans
Contact | Team | Media Kit | Merchandise | Supporters | Fiction | PotW
All Content Copywrite Team Dystopia 2002-2005.
The brand spankin new Dystopia Website is powered by Sunshine, Lollypops and a Custard Filled Mouse using Leg Boosters.
web.dystopia-game.com