X operations(XOPS)に非常に近いFPSゲームを制作・リメイクし、成果物をオープンソースとして公開することを目的としたプロジェクトです。
| Revision | 115 (tree) |
|---|---|
| Time | 2015-11-03 13:14:20 |
| Author | |
歩いて移動している時に走りの操作も行っていると、AIが警戒してしまう問題の修正。
| @@ -1548,13 +1548,6 @@ | ||
| 1548 | 1548 | |
| 1549 | 1549 | //オブジェクトにフラグを設定 |
| 1550 | 1550 | HumanIndex[human_id].SetMoveForward(); |
| 1551 | - | |
| 1552 | - //走る足音追加 | |
| 1553 | - float posx, posy, posz; | |
| 1554 | - int teamid; | |
| 1555 | - HumanIndex[human_id].GetPosData(&posx, &posy, &posz, NULL); | |
| 1556 | - HumanIndex[human_id].GetParamData(NULL, NULL, NULL, &teamid); | |
| 1557 | - GameSound->SetFootsteps(posx, posy, posz, teamid); | |
| 1558 | 1551 | } |
| 1559 | 1552 | |
| 1560 | 1553 | //! @brief 後退を実行 |
| @@ -1566,13 +1559,6 @@ | ||
| 1566 | 1559 | |
| 1567 | 1560 | //オブジェクトにフラグを設定 |
| 1568 | 1561 | HumanIndex[human_id].SetMoveBack(); |
| 1569 | - | |
| 1570 | - //走る足音追加 | |
| 1571 | - float posx, posy, posz; | |
| 1572 | - int teamid; | |
| 1573 | - HumanIndex[human_id].GetPosData(&posx, &posy, &posz, NULL); | |
| 1574 | - HumanIndex[human_id].GetParamData(NULL, NULL, NULL, &teamid); | |
| 1575 | - GameSound->SetFootsteps(posx, posy, posz, teamid); | |
| 1576 | 1562 | } |
| 1577 | 1563 | |
| 1578 | 1564 | //! @brief 左走りを実行 |
| @@ -1584,13 +1570,6 @@ | ||
| 1584 | 1570 | |
| 1585 | 1571 | //オブジェクトにフラグを設定 |
| 1586 | 1572 | HumanIndex[human_id].SetMoveLeft(); |
| 1587 | - | |
| 1588 | - //走る足音追加 | |
| 1589 | - float posx, posy, posz; | |
| 1590 | - int teamid; | |
| 1591 | - HumanIndex[human_id].GetPosData(&posx, &posy, &posz, NULL); | |
| 1592 | - HumanIndex[human_id].GetParamData(NULL, NULL, NULL, &teamid); | |
| 1593 | - GameSound->SetFootsteps(posx, posy, posz, teamid); | |
| 1594 | 1573 | } |
| 1595 | 1574 | |
| 1596 | 1575 | //! @brief 右走りを実行 |
| @@ -1602,13 +1581,6 @@ | ||
| 1602 | 1581 | |
| 1603 | 1582 | //オブジェクトにフラグを設定 |
| 1604 | 1583 | HumanIndex[human_id].SetMoveRight(); |
| 1605 | - | |
| 1606 | - //走る足音追加 | |
| 1607 | - float posx, posy, posz; | |
| 1608 | - int teamid; | |
| 1609 | - HumanIndex[human_id].GetPosData(&posx, &posy, &posz, NULL); | |
| 1610 | - HumanIndex[human_id].GetParamData(NULL, NULL, NULL, &teamid); | |
| 1611 | - GameSound->SetFootsteps(posx, posy, posz, teamid); | |
| 1612 | 1584 | } |
| 1613 | 1585 | |
| 1614 | 1586 | //! @brief 歩きを実行 |
| @@ -2255,6 +2227,16 @@ | ||
| 2255 | 2227 | //死亡時のエフェクト |
| 2256 | 2228 | DeadEffect(&(HumanIndex[i])); |
| 2257 | 2229 | } |
| 2230 | + | |
| 2231 | + //足音 | |
| 2232 | + if( HumanIndex[i].GetMovemode(false) == 2 ){ | |
| 2233 | + //走る足音追加 | |
| 2234 | + float posx, posy, posz; | |
| 2235 | + int teamid; | |
| 2236 | + HumanIndex[i].GetPosData(&posx, &posy, &posz, NULL); | |
| 2237 | + HumanIndex[i].GetParamData(NULL, NULL, NULL, &teamid); | |
| 2238 | + GameSound->SetFootsteps(posx, posy, posz, teamid); | |
| 2239 | + } | |
| 2258 | 2240 | } |
| 2259 | 2241 | |
| 2260 | 2242 | //武器オブジェクトの処理 |