|
感谢这些作者!
-------------------------------------------------------------------------------
看不到编译出来的HL2的菜单的兄弟们~~来啊
作者:yuanjingxp
http://www.gameres.net/Resource/hl2res.rar
解压缩后:
gamemenu.res 游戏菜单的资源文件
TrackerScheme.res 控制台的资源文件
mappack.rar map包,包含了少量map和材质
hl_tree.rar里包含少量资源
mss32.dll
注意:解压3个文件覆盖下就有了`~~ 见图
gamemenu.res 游戏菜单的资源文件
TrackerScheme.res 控制台的资源文件
mappack.rar map包,包含了少量map和材质
------------------------------------------------------------------------------
HL2的一些技巧...
作者:musictv
首先:下载补丁
下好Half.Life.2Beta-ANON这个版本后
最好在下载Half.Life.2.Beta.Patch1-ANON这个补丁,解压后覆盖到原文件夹即可,里面估计有一些更新
再此,如何进入游戏:
单点菜单里的选项是不起作用的,(除了Option)
首先要点`
然后输入map空格,用上下键可以选择地图,按回车进入游戏
如果显示
> map d1_canals_01.bsp
CModelLoader::Map_IsValid: No such map 'd1_canals_01_dx60'
map load failed: d1_canals_01_dx60 not found or invalid
则把你所有的地图文件名,都加上_dx60
例如:
d1_canals_01.bsp 改成 d1_canals_01_dx60.bsp
然后在控制台(console)里打入map d1_canals_01
不要加_dx60,现在就可以进入游戏了,
最后,一些进入游戏后可以用` 输入的秘籍和技巧
1 CS和config.cfg在HL2里基本可以用
2 打开地图d1_town_01.bsp再执行exec e3_town 就和E3见的一样了
3 和CS一样,默认可以按F5截图
4 map命令后面可以按上下键选择可以用的地图
其他命令
impulse 101 = MOST Weapons/Guns (NOT ALL) (all for that map)
有大多数武器
impulse 82 = spawns jeep
有jeep
god = god mode, player becomes invulnerable.
无敌
noclip = walk through everything, player becomes non-solid and flies.
穿墙
buddha = Player takes damage but won't die. (Shows red cross when health is zero)
HP到0也不会死
give itemname = Give item to player
给道具
give weapon_physgun = that cool weapon from the techdemo
-alt fire creates some sort of glue, allowing you to weld objects together
give weapon_flaregun = flaregun is a empty-model weapon that shoots a glowing red spark, if you touch it it sticks to you.
give weapon_hopwire = give weapon_hopwire is a grenade but crashes when you throw it.
give weapon_iceaxe = iceaxe is a very fast attacking crowbar
give weapon_immolator = immolator shoots a green radiation beam, anything it hits takes radiation damage - Thanks to Jurai2
give weapon_irifle = irifle looks ****ing cool, shoots flares (apparently these flares will set your enemy on fire) - Thanks to James`
give weapon_manhack = manhack is the spinning blade on those sentinal bots.
give weapon_rollerwand = rollerwand weapon doesn't seem to do anything...
give weapon_slam = slam weapon - throws out some sorta charge
-alt fire remote detonates the charge, although the model is missing - thanks to slackor for this
give weapon_sniperrifle = sniperrifle... guess.
give weapon_stickylauncher = stickylauncher shoots blobs like the physgun and rightclick detonates them
give weapon_stunstick = stuns things, and can be used as a bat
give weapon_thumper = thumper is... weird. It's a firehidron (a yellow one) that spews chemicals, but they dont' do anything either.
give weapon_cguard = combine rifle - Thanks to Jurai2
give weapon_alyxgun = alyx's uzi thing - Thanks to Jurai2
give weapon_bugbait = antlion bait - Thanks to Jurai2
give weapon_extinguisher = fire extinguisher, i think you can make this explode, maybe in fire or something
give weapon_smg2 = sub machine gun that uses 3 round burst (right click to toggle between burst and auto) - Thanks to Jurai2
give weapon_binoculars = binoculars
give weapon_ar1 = ak47 assault rifle (alt fire changes between 5 firing modes)
give item_suit
give item_battery
give item_healthkit
hurtme <value> = Hurts the player, obviously <value> would be replaced by
numbers 1 to 100
自伤
notarget = Player becomes hidden to NPCs.
NPC无视你的存在
map = 打开地图.
maps = 打开地图列表.
demomap = 打开地图录Demo,可以做测试软件?
exec = 执行脚本
多人游戏
打开一个地图,其他人用'ol /connect ip:27015'连接
t: 聊天
另外:
可以在
config.cfg加
bind "F11" "god"
bind "F12" "impulse 101"
E文Q&A链接
http://207.6.175.83/hl2faq.php
http://www.skullknight.com/uploads/files/
个人感想,这个游戏现在做的还很不完全,但就图像来说绝对走
在时代的前端,并且对机子要求并没有想想中的那么高,希望明年的
the valve能给大家带来惊喜~~~
小弟素新手,本文都是网上各方搜集而成,有不足之处还望大家见谅...
--------------------------------------------------------------------------------------------
半条命2源码编译向导
作者:lyobyo
***********半条命2源码编译向导*********
Half Life 2 Source Code Compile Guide(zz)
如何编译HL2工程
好,我已经看到你竭尽全力的想编译出自己的半条命2了。呵呵,现在可以了。遵照下面的说明书你就能自己亲自编译出属于自己的hl2.exe和其他文件了。
要注意的是编译需要很长的时间,你可以在晚上睡觉前干这些事情。:)
好的,让现在我们开始
-->注意:你的机器上应当装有Visual Studio 6
---------------------------
下载正确的素材
---------------------------
1.随便从什么地方下载到hl2的source。现今这些东西已经充斥了internet。
2.下载mss32.dll和h12_tree.zip
这些东西都很容易找到
3.从以下地址下载Visual Studio 6 Service Pack 5
http://msdn.microsoft.com/vstudio/d...sp5/sp5_en.aspx
4.从以下地址下载Processor Pack
http://msdn.microsoft.com/vstudio/d...k/download.aspx
----------
安装
----------
1.解压缩半条命2的代码包到c盘根目路。(比如 C:\HL2)
2.解压缩hl2_tree.zip到桌面上。(一会儿删除)
3.安装Visual Studio 6(如果你没装的话)
4.安装Visual Studio 5 Service Pack 5,选择不重新启动
5.安装Processor Pack
6.手动重启
---------
编译
---------
1.进入 开始->运行
2.敲入cmd命令(Windows NT/2000/XP/2K3)或者command命令(Windows 95/98/98SE/ME)。
3.敲入"cd" 比如 "cd c:\HL2"。
4.敲入"cd src_main"进入主程序目录。
5.在build_hl2.bat里加入一条set PATH=c:\Program Files\Microsoft Visual Studio\VC98\BIN。其中c:\Program Files\Microsoft Visual Studio\VC98\BIN改成你自己的路径。
6.现在,敲入"build_hl2.bat"回车
这会花掉很长很长的时间... 如果是在晚上,最好让它运行一夜,你现在应该有了一些新的
文件和文件夹,在半条命的主目录里。(刚好代替了"src_main")
----------------
准备运行
----------------
1.把mss32.dll拷贝到/bin(例如 C:\HL2\bin)
2.把所有从hl2_tree.zip解压缩的文件拷贝到/hl2下(例如 C:\HL2\hl2)
--------
开始
--------
1.现在进入最激动人心的部分了,在半条命2的主目录中双击"hl2.exe"
如果你所做的所有事情都是正确的,那么你就没理由失败... 那么如果失败了,就请
重做一边"准备运行"部分,再试一遍。
你现在应该面对的是一面砖墙。兴奋中!...
2. 按下键盘上的" ~ "键(在"1"键的左边)
3. 敲入"map test"。
注意:你现在不能看到你输入的东西!!这是很多HL2文件都存在的错误。看看周围,你
就能找到它们。
如果一切顺利,你现在应当进入游戏了。移动鼠标来回转转。你还不能用键盘移动,因为
还有很多bug :)
4.如果你对这个全新的革命性的东东感到无聊了......再次按" ~ "键,敲入quit。
游戏退出了,现在你可以去制作地图,或者联机,或者...
HAVE FUN!
一个小玩笑
---------------------------------------------------------------------
(原创)我的第一个HL2 patch, 解决map命令无反应的问题(源代码)
作者:fohoo
解决办法
// There's a version of this in bsplib.cpp!!! Make sure that they match.
void GetPlatformMapPath( const char *pMapPath, char *pPlatformMapPath, int maxLength )
{
Q_strncpy( pPlatformMapPath, pMapPath, maxLength );
// It's OK for this to be NULL on the dedicated server.
if( g_pMaterialSystemHardwareConfig )
{
int dxlevel = g_pMaterialSystemHardwareConfig->GetDXSupportLevel();
StripExtension( pPlatformMapPath );
/*注释下面这段(简单吧 )
if( dxlevel <= 60 )
{
Q_strncat( pPlatformMapPath, "_dx60", maxLength );
}
/*
Q_strncat( pPlatformMapPath, ".bsp", maxLength );
}
}
用批处理重新编译Engine就可以了.
还有一个好玩的,在上面代码中加一行:
Con_DPrintf("Hello, HL2!");
然后,你打map ttt看看............呵呵,有点感觉吧.. |
|