Welcome, Guest. Please login or register.
Did you miss your activation email?
September 20, 2024, 04:32:32 AM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Perky's custom weapons and equipment.
Pages: [1] 2 3
Author Topic: Perky's custom weapons and equipment.  (Read 14164 times)
ljdp
Poster

Posts: 13


« on: December 27, 2010, 10:59:58 PM »

Perky's Custom Weapons and Equipment

This addon will add 5 new weapons and equipment.

Poison Dart. Traitor.
This fires a poison dart from the crossbow.
The dart is affected by gravity and once the victim has been hit
they will slowly loose health.
Currently the rate is aprox. 5 damage every 2 seconds.
Ammo: 2 darts.
Limited Stock.

Counter-action: Health station Detective
Using the health station will remove the poison.

Radio Jammer. Traitor.
Placing down a Radio Jammer will block all voice and text chat.
Voice will be muted and chat replaced with "[JAMMED]".
Lasts for 15 seconds but emits loud electric noises to be found easily.
Limited Stock.

Counter-action: Radio Frequency 42Hz Detective
Passive item gives you immunity to the Radio Jammer.

Hidden Camera Detective
Place a hidden camera which is only visible to yourself.
When the camera witnesses a death it alerts you,
press use on the camera to collect it and view a snapshot of
the scene.
Limited Stock.

Iron Boots Detective
Passive item drastically reduces fall damage.
Currently you can survive a fall on crummycradle.

Foot Vision. Detective and Traitor.
With this item deployed your screen goes black and white
except for red footprints. All players leave footprints and they last for about 15 seconds.
Will they lead you to the traitor, or his trap?

Sheep Wool Shoes. Traitor.
With this item deployed you leave no footprints.

Trip Mine. Traitor.
Much like the Slam, this trip mine emits a red laser.
If this laser is broken the mine explodes killing anyone within
the vicinity. The laser can be removed safely by damaging it
or you can press USE to disarm and equip. The Trip mine has your
dna on it.

Download:
http://www.mediafire.com/?8vl5b2hv0a9p9pt
To Install place in addons folder.

It would be nice if someone was to use this on their server temporarily, I have no idea how it balances.
Update: Test server up at 96.225.242.71:27017


Feel free to change settings and stuff.
(perky is just an alias of ljdp)
« Last Edit: January 05, 2011, 06:38:27 AM by ljdp »
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #1 on: December 28, 2010, 12:18:08 AM »

On my server they all got AddHUDHelp errors, and the materials didn't download.  :S

You need to add a resource.AddFile thing for the materials, and I'm assuming AddHUDHelp is for v22?
« Last Edit: December 28, 2010, 12:34:26 AM by Mr. Gash »
Raneman
Poster

Posts: 219

Shitposter


« Reply #2 on: December 28, 2010, 12:49:23 AM »

The hidden camera should be official.
ljdp
Poster

Posts: 13


« Reply #3 on: December 29, 2010, 12:47:41 PM »

Updated a few things.
Fixed bugs n stuff.
Radiojammer duration is halved to 15 seconds.

Download:
http://www.mediafire.com/?9xp3xny54p3k26w
Manmax75
Poster

Posts: 254


Programming Guy


« Reply #4 on: December 29, 2010, 10:38:08 PM »

I swear that other guy partially stole your hidden camera idea....

Ride Forward and Thrust Your Pelvis In The Dark Void. The One Induced By Pleasure Yet Cast By The Bigger Picture.
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #5 on: December 30, 2010, 04:48:52 PM »

Yeah he did. Except this camera doesnt work, When you press E on it, the camera screen is black, with nothing on it. And the camera goes into your inventory.
« Last Edit: December 30, 2010, 04:55:16 PM by phoenixf129 »

Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
ljdp
Poster

Posts: 13


« Reply #6 on: December 30, 2010, 08:03:55 PM »

Did you press E on it after it had witnessed a death?
Gmod is fussy with render targets, you need to restart the game after you've added the addon.
Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #7 on: December 30, 2010, 09:21:30 PM »

I'm not sure clients joining the server would get sent the rendertarget .txt right now, would they? I didn't see a resource.AddFile for it. Regarding restarting, it might be easier to reuse one of gmod's standard render targets, but I haven't done much in that area so I'm not sure.

In general I think these weapons and items are well done. Everything is in hooks and entities, rather than messing with TTT's guts (as people tend to do), stuff like that. Nice work.
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #8 on: December 31, 2010, 11:58:36 AM »

Did you press E on it after it had witnessed a death?
Gmod is fussy with render targets, you need to restart the game after you've added the addon.


Of course i did. It had the hud notification "Your hidden camera has witnessed a death". I went up to it and hit E, got a derma popup with a black screen. I can confirm theres no resource.AddFile for the render_target... And i did restart :P Ill resource the settings file now i guess...

Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
ljdp
Poster

Posts: 13


« Reply #9 on: December 31, 2010, 12:32:56 PM »

I think the problem is render targets are created when gmod is loaded. So if you join a server with this addon for the first time you'll download the txt file in the render_target folder but the actual render target won't exist, hence blackness. Until you restart gmod.

This can be fixed, like King Urgrain said, using gmod's render targets. But I think there's only one to use "GModToolgunScreen".
So to fix change line 94 in entities/ttt_hiddencamera/shared.lua to:
local rtSnapshot = GetRenderTarget( "GModToolgunScreen", 256, 256 )
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #10 on: December 31, 2010, 05:44:28 PM »

The derma pops up for everyone when one guy hits e on the camera... And I got the picture this time, except it was a screenshot without map in it, just a screenshot of the skybox...

Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
ljdp
Poster

Posts: 13


« Reply #11 on: December 31, 2010, 05:55:28 PM »

Bleh, To be honest the visualizer is more useful than the snapshot, the main use of the hidden camera is the alert. I may just remove the snapshot part.
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #12 on: December 31, 2010, 06:48:03 PM »

Then... It would hardly be a camera, it would be a sensor.

Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
Rectal Exambot
Poster

Posts: 166


« Reply #13 on: January 01, 2011, 12:20:51 PM »

I can see the Camera causing many problems, like a detective metagaming/ghosting/hacking and kill traitors using the excuse, My Camera saw you
ljdp
Poster

Posts: 13


« Reply #14 on: January 01, 2011, 08:19:49 PM »

Perhaps the screen flashes a couple of times if you've been caught? Like you know when you've been caught speeding.
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #15 on: January 01, 2011, 11:06:33 PM »

Yes but the camera should be detective use only, not appear for everyone(derma popup), and be destroyable.

Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
ljdp
Poster

Posts: 13


« Reply #16 on: January 02, 2011, 04:13:19 AM »

http://www.mediafire.com/?wji2y5kv63l7684

I've fixed the Hidden Camera. Had it on a server before with loads of players and no complaints.
Differences now are Hidden cameras are visible to all detectives.
A sound is played when it takes a snapshot and players around it get a white flash.
Radio jammer jams traitors mics too, Radio jammer is useful for traitors who work together and plan
before they attack.

Also: Although it's unlikely these will be made official, and it's probably better to keep them as addons anyway
I am giving it away 'public domain' style so anyone can take it, change it and officialize it without having to ask me for permission or require attribution.
« Last Edit: January 02, 2011, 11:09:08 AM by ljdp »
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #17 on: January 03, 2011, 01:48:13 AM »

Why not cancel the chat message when the jammer is near you, and say "[JAMMED]" to that person only, since most servers have an anti-spam and even after your no longer jammed, it may still block your message from the anti-spam because your message was sent when you were near it. Also, it stops spectators from talking, last I checked. That is, if you didn't fix it. It was like that on the first release.
phoenixf129
Poster

Posts: 476


I Rise from the Ashes.


« Reply #18 on: January 03, 2011, 02:43:59 AM »

It also allowed spectators to ghost they are dead bu hitting y then enter . :/

Fixed in my version though, simply check if ply:IsSpec()

Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
ljdp
Poster

Posts: 13


« Reply #19 on: January 05, 2011, 06:36:08 AM »

3 New items added.

Foot Vision. Detective and Traitor.
With this item deployed your screen goes black and white
except for red footprints. All players leave footprints and they last for about 15 seconds.
Will they lead you to the traitor, or his trap?

Sheep Wool Shoes. Traitor.
With this item deployed you leave no footprints.

Trip Mine. Traitor.
Much like the Slam, this trip mine emits a red laser.
If this laser is broken the mine explodes killing anyone within
the vicinity. The laser can be removed safely by damaging it
or you can press USE to disarm and equip. The Trip mine has your
dna on it.

http://www.mediafire.com/?8vl5b2hv0a9p9pt
« Last Edit: January 05, 2011, 06:38:15 AM by ljdp »
Pages: [1] 2 3
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Perky's custom weapons and equipment. « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.009 seconds with 18 queries.