View unanswered posts | View active topics It is currently Thu Mar 28, 2024 2:29 am



This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
 Source 
Author Message
★★★★★

Joined: Mon May 26, 2008 5:08 pm
Posts: 30
Has thanked: 0 time
Been thanked: 0 time
I know I've asked these questions before on the server but I think I'll get better results on the forums.

1.) In Portal what is the command to kill/close both your portals that you have open.
EX: In Portal Flash Version you can press "R" to close all portals open (This is where I got the idea)
Ex: What I'm looking for is a code that is the does the exact same thing as when you walk through
one of the force fields at the end of each test chamber.

2.) If I made my own custom .CFG file to use the "exec HL2_Weapon_Script.cfg" and had to turn on "sv_cheats 1" but only for about 10 sec. while the entire .cfg loads how could I make a "sv_cheats 0" delay.
Ex: Here's something I tried but it didn't work "wait sv_cheats 0".
If I put a "sv_cheats 0" at the end of the script it executes it all at once and the script does nothing.
Basically how can I make a time released script

For anyone who's curious this is my HL2WeaponScript - I use it to make guns more realistic:

Code:
hud_saytext_time "15"
sv_cheats "1"
coop "1"
say "Half Life 2 Weapon Script Enabled"
impulse "101"


sk_max_357 "999"
sk_max_ar2 "999"
sk_max_ar2_altfire "999"
sk_max_buckshot "999"
sk_max_crossbow "999"
sk_max_grenade "999"
sk_max_pistol "999"
sk_max_rpg_round "999"
sk_max_smg1 "999"
sk_max_smg1_grenade "999"

sk_plr_dmg_crowbar 20
sk_plr_dmg_crowbar "20"
sk_plr_num_shotgun_pellets "50"
sk_plr_dmg_buckshot "8"
physcannon_maxforce 4500
physcannon_maxmass 850
physcannon_pullforce 8000
physcannon_tracelength 850

sk_npc_dmg_buckshot 8
sk_npc_num_shotgun_pellets 50
sk_npc_num_shotgun_pellets "50"
sk_npc_dmg_buckshot "8"

sv_infinite_aux_power 1
impulse "101"
impulse "101"
impulse "101"
impulse "101"





3.) How do I change the weapon damage of the Double Barrel on the Shotgun in the format of
sk_plr_num_shotgun_pellets "50"
or
sk_plr_dmg_buckshot "8"

4.) How do I turn on talk mode- just using "say text" or "say "text"" doesn't work the way it does in Portal or Sven Coop

5.) Why does "physcannon_megacannon 1" never work in any format that i try to write it

6.) How do I put a comment into a code?
Ex: In the HTML Language a comment is this <!--Comment Here-->

Yes i have reviewed these sites so please don't tell me to look at all the codes
http://developer.valvesoftware.com/wiki ... mmand_List
http://strategywiki.org/wiki/Portal/Cheats


Last edited by R_Dogg on Thu Sep 18, 2008 6:58 pm, edited 1 time in total.



Thu Sep 18, 2008 2:13 pm
Profile
Site Admin

Joined: Mon May 05, 2008 9:05 pm
Posts: 1426
Has thanked: 19 times
Been thanked: 13 times
you can use echo command for the say command but it will only show up in the console.

for comments putting // before a line will keep it from being executed.

_________________
/!\ New MC players please read these 2 threads: Rules and Starter Guide. /!\

Image
Image
[ Steam group for my SC game servers. - Cartman-2000's image host ]


Thu Sep 18, 2008 3:01 pm
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.
[ Time : 0.226s | 19 Queries | GZIP : On ]