This site is a testing version, but all data is shared with the live forum.


Raised This Month: $12 Target: $400
 3% 

VR Mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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, 846 views)
File Type: sma Get Plugin or Get Source (Virtual-Reality.sma - 1838 views - 6.3 KB)
File Type: zip Virtual-Reality.zip (8.7 KB, 463 views)

Last edited by Doc-Holiday; 03-12-2013 at 04:01. Reason: Added compiled plugin in ZIP
Doc-Holiday is offline
 



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 17:55.


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