AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   VR Mod (https://forums.alliedmods.net/showthread.php?t=123964)

Doc-Holiday 04-10-2010 23:52

VR Mod
 
5 Attachment(s)
VR Mod
Version 2.0


Description:
This plugin is made to act as a virtual reality plugin, where once you get shot down to a definable amount you will bleed out. Once you hit the save amount the bleeding will stop.

Tested in CZ.

To use the natives just type the follow at the top of your code. Stick the file in the include folder. Then compile it localy. The web compiler wont work with this. For a list of servers running this click here.
PHP Code:

#include <vrmod> 


Cvars
:

  • vr_bleed - Turns the plugin on and off. (default: 1)
  • vr_startbleeding - The HP at which the bleeding starts(default: 65)
  • vr_stopbleeding- The HP where it stops the bleeding. (default: 10)
  • vr_bleedtimelower- Lowest number for random number gen (default: 1)
  • vr_bleedtimeupper - Highest number for random number gen(default: 3)
  • vr_cz_botsupport - Support for CZbots Must be on czmod (default: 0)
  • amx_prefix - Chat Prefix. Not used yet (default: "VR Mod")
Addons:

Natives:

  • StartBleed(index) - Starts the bleeding process. Replace index with players id. StartBleed(id); (Starts the bleeding process setup in this plugin) Index is a players index 1-32
  • StopBleed(index) -Stops the bleeding process. Replace index with players id. StopBleed(id); (Instantly stops the bleeding.) Index is a players index 1-32
  • IsUserBleeding(index) - Returns True or False if the user is bleeding. Replace index with players id. Index is a players index 1-32
Credits:
  • Snow - For registering bots in ham.
  • Apollyon - For testing.
  • ConnorMcLeod- For Ham_TraceBleed trace.
ToDo List:
  • Add in Speed decrease when shot in the leg
  • Add in Arm shake when shot in the arm. (Not the weapon drop)
Change log:


1.0
Initial Release

1.1
Created Natives to start and stop the bleeding.

1.2
Added a new native.

1.3
Removed "Task_Exists" from the plugin
Added in a new cvar to use cz bot support (for the different bot typs on cz)
Checks mod as well so even if you have the bot support on on cstrike it wont run.
2.0
Full rewrite
Removed all set_tasks

Using Thinking ents (Connors idea)
Ham_TraceBleed from Connor
Each player bleeds on there own not at same time (Following ents)
New Cvars

kanatzu 04-10-2010 23:57

Re: Virtual Reality
 
I thought it looked weird when you first posted in Suggestion/Request Section.

I wouldent get suprised if i saw this on Zombie-Modded Servers.

I don't have effort to test it out atm, im eating carrots.

I will download it and check it out later tought.

It's realistic, i like that.

NiQu 04-11-2010 00:53

Re: Virtual Reality
 
I dont think this is enough to call it virutal-reality? i think u shud rename it to Reality Blood or something.

Doc-Holiday 04-11-2010 01:06

Re: Virtual Reality
 
Quote:

Originally Posted by NiQu (Post 1146595)
I dont think this is enough to call it virutal-reality? i think u shud rename it to Reality Blood or something.

I should add more to the todo list..

I want to add some shaking of arms when shot in the arm hit zones. and slowing down a bit not much but with leg shots.

NiQu 04-11-2010 03:15

Re: Virtual Reality
 
Yeh, make it alot bigger with a ton of features and then u can call it something like Virutal War or something.

Doc-Holiday 04-11-2010 09:07

Re: Virtual Reality
 
Quote:

Originally Posted by NiQu (Post 1146666)
Yeh, make it alot bigger with a ton of features and then u can call it something like Virutal War or something.


NAtives are now added next feature will be natives to add in arm shake and slowing his/her speed

Zombiezzz 04-11-2010 12:27

Re: Virtual Reality
 
Quote:

Originally Posted by kanatzu (Post 1146551)
I don't have effort to test it out atm, im eating carrots.

lol

kanatzu 04-12-2010 06:33

Re: Virtual Reality
 
Quote:

Originally Posted by Doc-Holiday (Post 1146915)
NAtives are now added next feature will be natives to add in arm shake and slowing his/her speed

We're getting somewhere now!

wrecked_ 04-12-2010 07:26

Re: Virtual Reality
 
As a small suggestion for reality, you could work off of hitboxes when a player takes damage and use effects based on that.

For example, a player is hit in his left arm. You can use a clcmd (if there is one, never really checked) to change is aiming to his right side and block him from using his left arm for the rest of the round. If you're going to do something like this, though, you need to ask the client upon connection if he/she would be okay with you using clcmds to alter their shooting view.

Doc-Holiday 04-12-2010 09:34

Re: Virtual Reality
 
That would bug the hell out of me as a player... thats why the small shake and slightly slower speeds...and criple on nade blast is better


All times are GMT -4. The time now is 03:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.