Raised This Month: $95 Target: $400

Scripting Forwards

Post New Thread Reply   
Thread Tools Display Modes
Plugin Info:     Modification:   Natural Selection        Category:   Event Related        Approver:   BAILOPAN (72)
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 01-08-2007 , 11:28   Scripting Forwards
Reply With Quote #1

This plugin will send various client commands to clients whenever certain events happen server-side. These events are changing teams and classes. Additionally the client will be sent two forwards at the beginning of the map, depending on the map type and mp_blockscripts setting.

Note: It does nothing that can get around mp_blockscripts, please do not think this would help circumvent that. This just merely makes class-based config files much easier to manage.

The forwards sent are:

Blockscript forwards
  • f_bs - Blockscripts is enabled
  • f_nobs - Blockscripts is disabled
Map forwards
  • f_ns - Classic map
  • f_co - Combat map
Team forwards
  • f_marine - Player joined the marine team
  • f_alien - Player joined the alien team
Class forwards
  • f_commander - Commander
  • f_light - Vanilla marine
  • f_heavy - Heavy armor
  • f_jetpack - Jetpack
  • f_skulk - Skulk
  • f_gorge - Gorge
  • f_lerk - Lerk
  • f_fade - Fade
  • f_onos - Onos
Attached is an example client config file that does the following:
  • Uses a simple pistol script when on marine in an mp_bs 0 server
  • Binds a key (KP_ENTER) to 4 different settings, depending on team and map
  • Changes cl_customcrosshair to different values depending on class
Note the sample script is kind of overwhelming if youre new to scripting. Its written as cleanly as I can think of, but the limited HL scripting system kind of makes that hard.
Attached Files
File Type: sma Get Plugin or Get Source (script_forwards.sma - 1193 views - 7.1 KB)
File Type: cfg sample.cfg (2.2 KB, 250 views)
fyren sucks
sawce is offline
Join Date: Jan 2007
Location: Starachowice , Poland
Old 01-24-2007 , 07:37   Re: Scripting Forwards
Reply With Quote #2

nice +karma

PS: Why you have -9999 karma??LOL
Agent_GOD is offline
Darth Sailor
Junior Member
Join Date: Jan 2005
Location: Montreal, Canada
Old 10-09-2007 , 16:45   Re: Scripting Forwards
Reply With Quote #3

I really don't get what this plugin does. Can you put it in layman's terms?
Darth Sailor is offline
Send a message via Yahoo to Darth Sailor

Thread Tools
Display Modes

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 11:18.

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