Raised This Month: $32 Target: $400
 8% 

VR Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Condition-Zero        Category:   Gameplay        Approver:   ConnorMcLeod (74)
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-10-2010 , 23:52   VR Mod
Reply With Quote #1

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
Attached Files
File Type: inc vrmod.inc (151 Bytes, 831 views)
File Type: sma Get Plugin or Get Source (Virtual-Reality.sma - 1806 views - 6.3 KB)
File Type: zip Virtual-Reality.zip (8.7 KB, 450 views)

Last edited by Doc-Holiday; 03-12-2013 at 04:01. Reason: Added compiled plugin in ZIP
Doc-Holiday is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 04-10-2010 , 23:57   Re: Virtual Reality
Reply With Quote #2

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.
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
NiQu
Veteran Member
Join Date: Nov 2009
Old 04-11-2010 , 00:53   Re: Virtual Reality
Reply With Quote #3

I dont think this is enough to call it virutal-reality? i think u shud rename it to Reality Blood or something.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-11-2010 , 01:06   Re: Virtual Reality
Reply With Quote #4

Quote:
Originally Posted by NiQu View Post
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.
Doc-Holiday is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 04-11-2010 , 03:15   Re: Virtual Reality
Reply With Quote #5

Yeh, make it alot bigger with a ton of features and then u can call it something like Virutal War or something.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-11-2010 , 09:07   Re: Virtual Reality
Reply With Quote #6

Quote:
Originally Posted by NiQu View Post
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
Doc-Holiday is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 04-11-2010 , 12:27   Re: Virtual Reality
Reply With Quote #7

Quote:
Originally Posted by kanatzu View Post
I don't have effort to test it out atm, im eating carrots.
lol
__________________
Zombiezzz is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 04-12-2010 , 06:33   Re: Virtual Reality
Reply With Quote #8

Quote:
Originally Posted by Doc-Holiday View Post
NAtives are now added next feature will be natives to add in arm shake and slowing his/her speed
We're getting somewhere now!
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 04-12-2010 , 07:26   Re: Virtual Reality
Reply With Quote #9

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.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-12-2010 , 09:34   Re: Virtual Reality
Reply With Quote #10

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
Doc-Holiday is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:10.


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